PDA

View Full Version : Running automated test on IE11 using standalone Selenium server



Fred H
16 Sep 2017, 1:44 PM
I created some tests that run fine on my Chrome local browser. I now want to run these tests on a local IE11 browser.

I downloaded the latest Selenium Standalone Server (3.5.3) and the IEDriverServer.exe which are both in my PATH. Per Selenium docs (https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver), I updated my registry for running the driver with IE11.

I am running the selenium server with:
java -jar selenium-server-standalone-3.5.3.jar

It seems to start OK:


C:\Users\fhardin\bin>java -jar selenium-server-standalone-3.5.3.jar
16:16:19.697 INFO - Selenium build info: version: '3.5.3', revision: 'a88d25fe6b'
16:16:19.698 INFO - Launching a standalone Selenium Server
2017-09-16 16:16:19.720:INFO::main: Logging initialized @214ms to org.seleniumhq.jetty9.util.log.StdErrLog
16:16:19.770 INFO - Driver class not found: com.opera.core.systems.OperaDriver
16:16:19.796 INFO - Driver provider class org.openqa.selenium.safari.SafariDriver registration is skipped: registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform VISTA
16:16:19.820 INFO - Using the passthrough mode handler
2017-09-16 16:16:19.846:INFO:osjs.Server:main: jetty-9.4.5.v20170502
2017-09-16 16:16:19.863:WARN:osjs.SecurityHandler:main: ServletContext@o.s.j.s.ServletContextHandler@520a3426{/,null,STARTING} has uncovered http methods for path: /
2017-09-16 16:16:19.866:INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler@520a3426{/,null,AVAILABLE}
2017-09-16 16:16:20.094:INFO:osjs.AbstractConnector:main: Started ServerConnector@23faf8f2{HTTP/1.1,[http/1.1]}{0.0.0.0:4444}
2017-09-16 16:16:20.095:INFO:osjs.Server:main: Started @590ms
16:16:20.095 INFO - Selenium Server is up and running

I configured Sencha Test to run with a GenericWebserver per Sencha Docs (http://docs.sencha.com/sencha_test/2.1.0/guides/standalone_selenium_servers.html). When I run the test for IE11, I get this error from Sencha Studio:


Error: Invalid timeout type specified:
ms Build info: version: '3.5.3', revision: 'a88d25fe6b',time: '2017-08-29T12:54:15.039Z' System info: host: 'PA10030928', ip: '172.16.241.3', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_144'
Driver info: driver.version: unknown at url("http://localhost/htdocs/figleaftraining/extjs5/walk/walk3-8/")
- C:\Users\fhardin\Sencha\Test\2_1_1_31\resources\app.asar\node_modules\orion-core\serve\context\WebDriver.js:124:18 at timeouts("script", 10000)
- C:\Users\fhardin\Sencha\Test\2_1_1_31\resources\app.asar\node_modules\orion-core\serve\context\WebDriver.js:123:18 at init()
- C:\Users\fhardin\Sencha\Test\2_1_1_31\resources\app.asar\node_modules\orion-core\serve\context\WebDriver.js:118:18

Any ideas why this does not work? Is there any additional setup needed?

Thanks,
Fred

joel.watson
19 Sep 2017, 7:20 AM
Hi Fred--

Which version of the IEDriver are you using?

Thanks
Joel

Fred H
19 Sep 2017, 11:42 AM
Joel,

It is the latest version from Selenium: 3.5.1.0.

https://www.sencha.com/forum/image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWMAAAAmCAIAAACeQm3dAAAEFElEQVR4nO2azXXcMAyE1e52tW0kJ7WQlOEqcshLHg0CgwFI2fsz38tBS4GDIUjBsbzHz98ff//9 PVxv99vt9shhBAGdQohRI46hRAiR51CCJGjTiGEyFGnEELkqFMIIXLUKYQQOeoUQoicqFOcAz3lce6Kzl7mRS0uk0kxjm XbehHke6mnx7zeHUhfHxV XEO20vhdorSQx7dLYlshHmW3Idhr4d2p2j3gtIqcLPAg/O2bkm9yHedt3dh7hT4KZp7NnPmvrhTMM2LnLLdw8rcvT75dvZoW zyUGZekLRTGOZOcRDHK2o3rk4UXNWJzINxRp/0w tU/a/rg0Ru8Dg4pzDXZH2wCLMuPHf239BZ8QNI6 DaIMVxUjcXRbVTMD6ws r1QZxCnH0ccSseyUZqDT9AhPRfnZL6SWeZwbl0UQq3PlWfwH kn6ZjdDb6ceF10nigb2joWHZ1ijk9U5F5ulmeuYVlsR8QjzeG9JMa4 vD E9XxxSKLJGRSlO49an6PCfMlJI r7PdjwHoGCkmnidaF8v6ewrGjTsFJwKR/F0yhWsV E XU10vYyydUtVfHAQpSvvVECnV/7t0IpjiRPVZgd8gn rfPuaVRIaYipO7UtrRRpgbs90PEGn4n6eU9JlSAGUzztQH3D0HGP l ld1dvkxUiUd0n8Vd10sV3yfwixsFimNAyekybH6IOn4cb5lLrCfSAcHMP5nww39KJ27tFn8nOoQxQN9xtKK/orOLj Ht1lYx/2IU5Toi g7mkKIHHUKIUSOOoUQIge80QS/j4135xGSLb93AeXr9J FUh3czSWzNPwsHhUswuinNniTb3HS8BtNE2wGz89vXKJZERfVd5R9iy0MqNahV6v247TyHDJPOCPe6BQrvem5WekU7vi3l yhzDwIV3SKc6DqYeVhJtvEeqeoxr/4YWt3ijP4 fD/etwwo ZuJ3jCQfysDzasrbPiB5DWwbVBis J1mNWZpnitC2BiSv15/cXmO/V8DlodIqoiODaLW5VBEwx mk6RmejHxdeJ41PszDB52cY8YaT49/PGGaiGxP5xLVyZ GSMiOM4Rfhuv9THJ PaVp3fqfNlJI r7PdjwHoGCkmHnNdfDWSr08Uw 9LST/agtRPKeCJufQ9BS6cudsQaZykr9eJYIoT1adKdS4fX40kzwbQZ0Qa4jgRI7uyQU/ApX/7qFb2HHDDGP0ovqqzy4 RKumQ/kHGKL7kx43HTrA uYR0Is5eUo6W7I4wwa/Gdd ncAcjKXMLxFf1V3R2 TmCJ42pwPgRpwBJwRLa8edESZ9cwjiR8ZnenTVLSwPr4pfzlOg7mkKIHHUKIUSOOoUQIkedQgiRo04hhMhRpxBC5KhTCCFy1CmEECl/AMcN77fOCgmeAAAAAElFTkSuQmCCAA==

Fred

daniel.gallo
4 Oct 2017, 9:48 PM
It appears the newer versions of Selenium Server and IEDriverServer may cause some issues together, with others online also encountering the same error.

Numerous sites online talk about downgrading both the Selenium Server and IEDriverServer. I tried using version 3.4 of Selenium Server and IEDriverServer, and this combination works fine with Sencha Test.

You can download the older versions of both from here: http://selenium-release.storage.googleapis.com/index.html?path=3.4/

Fred H
8 Oct 2017, 7:42 AM
Daniel,

I tried the older 3.4 versions of Selenium Standalone Server and IEDriverServer, and I was able to get things to work.

Thanks!
Fred

novis
16 Oct 2017, 4:02 AM
I had the same problem. Nice to find this forum. Thanks!

cro
21 May 2018, 7:36 AM
+1 to this. Thanks