aerokube / selenoid

Selenium Hub successor running browsers within containers. Scalable, immutable, self hosted Selenium-Grid on any platform with single binary.
https://aerokube.com/selenoid/latest/
Apache License 2.0
2.57k stars 322 forks source link

Getting Error while running IE 11 remotely through Selenoid #545

Closed rohitpatwari84 closed 6 years ago

rohitpatwari84 commented 6 years ago

I have set up Selenoid on one of my VM(Win 7 , IE 11) .It is up and running -

018/09/09 02:40:01 [-] [INIT] [Loading configuration files...]
2018/09/09 02:40:01 [-] [INIT] [Loaded configuration from C:\IEDriver\browsers.json]
2018/09/09 02:40:01 [-] [INIT] [Using default containers log configuration because of: read error: open config/container-logs.json: The system cannot find the path specified.]
2018/09/09 02:40:01 [-] [INIT] [Timezone: Local]
2018/09/09 02:40:01 [-] [INIT] [Listening on :4444]
2018/09/09 02:40:01 listen tcp :4444: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

Now when I try to launch this from my windows 10 machine

       DesiredCapabilities dcap = DesiredCapabilities.internetExplorer();
        URL url = new URL("http://<host_name_of_selenoid>:4444/wd/hub");
        WebDriver driver = new RemoteWebDriver(url, dcap);
........

I see the below Error on my idea console (on local , from where I try to launch the test)-

Exception in thread "main" org.openqa.selenium.WebDriverException: The path to the driver executable must be set by the webdriver.ie.driver system property; for more information, see https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver. The latest version can be downloaded from http://selenium-release.storage.googleapis.com/index.html
Command duration or timeout: 1.11 seconds
Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T15:28:36.4Z'
System info: host: 'mylocalhost', ip: 'x.x.x.x', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_162'
aandryashin commented 6 years ago

It looks like windows related issue...

вс, 9 сент. 2018 г. в 12:04, rohitpatwari84 notifications@github.com:

I have set up Selenoid on one of my VM(Win 7 , IE 11) .It is up and running -

018/09/09 02:40:01 [-] [INIT] [Loading configuration files...] 2018/09/09 02:40:01 [-] [INIT] [Loaded configuration from C:\IEDriver\browsers.json] 2018/09/09 02:40:01 [-] [INIT] [Using default containers log configuration because of: read error: open config/container-logs.json: The system cannot find the path specified.] 2018/09/09 02:40:01 [-] [INIT] [Timezone: Local] 2018/09/09 02:40:01 [-] [INIT] [Listening on :4444] 2018/09/09 02:40:01 listen tcp :4444: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

Now when I try to launch this from my windows 10 machine

   DesiredCapabilities dcap = DesiredCapabilities.internetExplorer();
    URL url = new URL("http://<host_name_of_selenoid>:4444/wd/hub");
    WebDriver driver = new RemoteWebDriver(url, dcap);

........

I see the below Error on my idea console (on local , from where I try to launch the test)-

Exception in thread "main" org.openqa.selenium.WebDriverException: The path to the driver executable must be set by the webdriver.ie.driver system property; for more information, see https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver. The latest version can be downloaded from http://selenium-release.storage.googleapis.com/index.html Command duration or timeout: 1.11 seconds Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T15:28:36.4Z' System info: host: 'mylocalhost', ip: 'x.x.x.x', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_162'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aerokube/selenoid/issues/545, or mute the thread https://github.com/notifications/unsubscribe-auth/ABWNbdmqcQdvgSpWR0MqL9mFfIBsiEt9ks5uZNmpgaJpZM4WgNJr .

rohitpatwari84 commented 6 years ago

Should this command work to make sure selenoid is running properly http://myhost:4444/status ? It is giving page not found

aandryashin commented 6 years ago

Yes it should work, also please make sure than 4444 is not listening by another process.

вс, 9 сент. 2018 г. в 12:41, rohitpatwari84 notifications@github.com:

Should this command work to make sure selenoid is running properly http://myhost:4444/status ? It is giving page not found

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/aerokube/selenoid/issues/545#issuecomment-419703165, or mute the thread https://github.com/notifications/unsubscribe-auth/ABWNbQhnshI6thSNFjSZSkTjtvTedJ0Uks5uZOJegaJpZM4WgNJr .

rohitpatwari84 commented 6 years ago

I dont know how and why ..But it started working now . I made no changes at all :P.. BTW ..Thanks Alex!!!!

So I can mention this IE host in my user.xml property in the docker host running ggr and it will show up in selenoid UI as well as run if i send requests to ggr ? Am I right ?

aandryashin commented 6 years ago

Please take a look on ggr-ui project, It aggregates statuses from all underlying ggr hosts.

https://github.com/aerokube/ggr-ui

вс, 9 сент. 2018 г. в 12:52, rohitpatwari84 notifications@github.com:

I dont know how and why ..But it started working now . I made no changes at all :P.. BTW ..Thanks Alex!!!!

So I can mention this IE host in my user.xml property in the docker host running ggr and it will show up in selenoid UI as well as run if i send requests to ggr ? Am I right ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/aerokube/selenoid/issues/545#issuecomment-419703742, or mute the thread https://github.com/notifications/unsubscribe-auth/ABWNbbyyrEDDuHB39KPCSPa-U6MXFoXXks5uZOT4gaJpZM4WgNJr .

rohitpatwari84 commented 6 years ago

Ok cool.. Thanks Alex ..And can we have VNC for this IE machine(like we see vnc view for chrcome and FF , although I understand that vnc is baked into those images) ?Is there any any way ?

Also , as far as testing goes , will these chrome and FF images running on linux base make any difference if compared to chrome and FF running in Windows ?

aandryashin commented 6 years ago

Unfortunately selenoid does not support vnc on windows hosts.

вс, 9 сент. 2018 г. в 13:13, rohitpatwari84 notifications@github.com:

Ok cool.. Thanks Alex ..And can we have VNC for this IE machine ?Is there any any way ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/aerokube/selenoid/issues/545#issuecomment-419704655, or mute the thread https://github.com/notifications/unsubscribe-auth/ABWNbXqO0z4eoXkcFFH_Uac7i6AAXP7dks5uZOmygaJpZM4WgNJr .