--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/0e09b0d9-41e6-45ef-a5ce-a225f810cfaf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
I have found the solution for this issue. it is working fine for me. If you are using windows, run your Jenkins services in system admin, 1. open to run cmd 2. Enter service and click Okay button 3. A service dialog box open, locate Jenkins services. Go to properties of service 4. Go to logon tab, choose the second option. provide the your admin user not the local server 5. then restart the services. This will work
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/d1611ade-fd60-49cd-b7f1-8667b0bbaa34%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/d86541c8-348d-4f85-890e-feb4fd1fee1f%40googlegroups.com.
* What does your stack trace look like on your Jenkins job ?
* Have you tried manually spawning both chrome browser and chrome driver to make sure the setup is all fine on your Amazon cloud
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
El lunes, 6 de junio de 2016, 12:53:07 (UTC+5:30), Krishnan escribió:
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/6f3dd1b4-9ce0-443b-8e6b-c757063ad4f0%40googlegroups.com.
Starting ChromeDriver 2.22.397933 (1cab651507b88dec79b2b2a22d1943c01833cc1b) on port 22509 Only local connections are allowed.Tests run: 502, Failures: 1, Errors: 0, Skipped: 501, Time elapsed: 65.255 sec <<< FAILURE! - in TestSuite test1_gotoSetUp(XXX_QA.FrontEndAutomation.Test_CP_BuySerive_withCredits) Time elapsed: 63.773 sec <<< FAILURE! org.openqa.selenium.WebDriverException: unknown error: unable to discover open pages (Driver info: chromedriver=2.22.397933 (1cab651507b88dec79b2b2a22d1943c01833cc1b),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 60.95 seconds Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: 'XXXX', ip: 'XX.XX.XX.XX', os.name: 'Windows Server 2008 R2', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_40' Driver info: org.openqa.selenium.chrome.ChromeDriverResults : Failed tests: Test_CP_BuySerive_withCredits>Run.test1_gotoSetUp:95 » WebDriver unknown error... Tests run: 210, Failures: 1, Errors: 0, Skipped: 209
HiI have a Java script that runs tests automatically on a daily basis. I added a test that uses Selenium, and when it calls "WebDriver driver = new ChromeDriver()" it fails with the following error.However when I run the test manually, the error does not reproduce.Selenium version is 2.49.1, Chrome is up to date.Any ideas what could be the problem?27-04-2016 07:39:13 org.openqa.selenium.WebDriverException:unknown error: unable to discover open pages
(Driver info: chromedriver=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 63.87 seconds
Build info: version: '2.24.1', revision: '17205', time: '2012-06-19 16:53:24'
System info: os.name: 'Windows Server 2008 R2', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_66'
Driver info: driver.version: ChromeDriver
Session ID: db858e0e720d15d82c6a4a9da6d90eef
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
allow-no-sandbox-job | Enables the sandboxed processes to run without a job object assigned to them. This flag is required to allow Chrome to run in RemoteApps or Citrix. This flag can reduce the security of the sandboxed processes and allow them to do certain API calls like shut down Windows or access the clipboard. Also we lose the chance to kill some processes until the outer job that owns them finishes. ↪ |
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/6178f0f2-aa7d-4b1c-a964-3a603bec0e80%40googlegroups.com.--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/gfvfH-YEC48/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
Running XXXXSuiteStarting ChromeDriver 2.22.397933 (1cab651507b88dec79b2b2a22d1943c01833cc1b) on port 22600 Only local connections are allowed.Tests run: 494, Failures: 1, Errors: 0, Skipped: 493, Time elapsed: 66.093 sec <<< FAILURE! - in TestSuite test1_XXX Time elapsed: 64.381 sec <<< FAILURE! org.openqa.selenium.WebDriverException: unknown error: unable to discover open pages (Driver info: chromedriver=2.22.397933 (1cab651507b88dec79b2b2a22d1943c01833cc1b),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 60.92 seconds Build info: version: 'unknown', revision: '31c43c8', time: '2016-08-02 21:57:56 -0700' System info: host: 'XXX', ip: '10.130.94.20', os.name: 'Windows Server 2008 R2', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_40' Driver info: org.openqa.selenium.chrome.ChromeDriverResults : Failed tests: Test_XXX » WebDriver unknown erro... Tests run: 206, Failures: 1, Errors: 0, Skipped: 205Thanks,Priya Kharb
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/gfvfH-YEC48/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/8e7e32bb-c100-49cb-8076-0e702c1850a2%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/db43f5a6-e3a3-4d20-9bd9-a2142b98ff18%40googlegroups.com.
Hey, I seem to have the same issue but none of the steps in this thread have worked for me. As previously mentioned, this is only an issue when I try to run the commands through Jenkins
ChromeOptions options = new ChromeOptions();
options.addArguments("test-type");
options.addArguments("start-maximized");
options.addArguments("--disable-extensions");
options.addArguments("no-sandbox");
options.addArguments("ignore-certificate-errors");
options.addArguments("--allow-running-insecure-content");
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities.setCapability("chrome.binary", WINDOWS_CHROME_DRIVER);
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
WebDriver driver = new ChromeDriver();
mvn exec:java -Dexec.args="%RESULT_DIR%"
Starting ChromeDriver 2.23.409699 (49b0fa931cda1caad0ae15b7d1b68004acd05129) on port 30083 Only local connections are allowed. [WARNING] java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293) at java.lang.Thread.run(Thread.java:745) Caused by: org.openqa.selenium.WebDriverException: unknown error: unable to discover open pages (Driver info: chromedriver=2.23.409699 (49b0fa931cda1caad0ae15b7d1b68004acd05129),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 60.71 seconds Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09' System info: host: 'td-beefcake', ip: '192.168.214.43', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_60' Driver info: org.openqa.selenium.chrome.ChromeDriver at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:144) at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:170) at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:159) at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:116)
WebDriver driver = new ChromeDriver(options);
private static WebDriver driver;
@BeforeClass
public static void openBrowser() {
driver = new ChromeDriver();
driver.get(BASE_URL);
}
private static WebDriver driver;
@BeforeClass
public static void openBrowser() {
ChromeOptions options = new ChromeOptions();
options.addArguments("no-sandbox");
driver = new ChromeDriver(options);
driver.get(BASE_URL);
}