Hi
I use Selenium true Powershell to Open EdgeDriver locally and it works great.
Now I want to open the MicrosoftWebDriver.exe manually on one server and then run the Powershell Selenium script on another server by connecting to the MicrosoftWebDriver on the other server by IP and Port
I cant understand from the documentation what is the syntax to do that
The beginning of my correct script that works locally is:
# Load the web driver dlls
$dllroot = 'C:\Program Files (x86)\Microsoft Web Driver\'
Add-Type -Path (Join-Path -Path $dllroot -ChildPath Selenium.WebDriverBackedSelenium.dll)
Add-Type -Path (Join-Path -Path $dllroot -ChildPath ThoughtWorks.Selenium.Core.dll)
Add-Type -Path (Join-Path -Path $dllroot -ChildPath WebDriver.dll)
Add-Type -Path (Join-Path -Path $dllroot -ChildPath WebDriver.Support.dll)
# Initiate a driver
$driver = New-Object -TypeName OpenQA.Selenium.Edge.EdgeDriver
# Browse to a website
$driver.Url = 'https://google.com'
Now how do I create the "$driver" by connecting to the MicrosoftWebDriver.exe by IP and Port and not by
putting it in the same folder as in this example?
Thank you