seleniumhq / www.seleniumhq.org Goto Github PK
View Code? Open in Web Editor NEWOld Selenium website and docs (deprecated)
Old Selenium website and docs (deprecated)
http://www.seleniumhq.org/docs/03_webdriver.jsp
Example in section - Introducing the Selenium-WebDriver API by Example
Issues:
Change http://docs.seleniumhq.org/docs/02_selenium_ide.jsp#javascript-and-selenese-parameters > JavaScript Usage with Non-Script Parameters, so that
Both as per chrome://selenium-ide/content/selenium-core/reference.html#parameter-construction-and-variables
If i try to add extension in my headless chrome the below exception is throwing
Caused by: org.openqa.selenium.WebDriverException: unknown error: failed to wait for extension background page to load: chrome-extension://bpjbgjeaagkflhjbbnjflonhepfoopdm/background.html
from unknown error: page could not be found: chrome-extension://bpjbgjeaagkflhjbbnjflonhepfoopdm/background.html
From @dofinium on May 19, 2017 8:51
There are some problem with some symbols, please look at the attached image.
Copied from original issue: SeleniumHQ/selenium#4045
When i click on Change-log link of JAVA binding for Selenium, It also shows me change-log for version 3.0.2. But its officials version is 3.0.1
Is it a mistake or version 3.0.2 version is yet to be published?
Thanks
Gaurav Tiwari
"Information on Selenium-Grid version 1 may be found at the Selenium-Grid website."
Currently FluentWait provides wait until semantics, e.g.
wait.until(isTrue)
This can lead to double negative conditions which reduces clarity and increases complexity.
The could be readily improved with wait while semantics, e.g.
wait.while(isTrue)
In the page,
http://www.seleniumhq.org/docs/04_webdriver_advanced.jsp#explicit-and-implicit-waits-reference
Expected Conditions
There are some common conditions that are frequently encountered when automating web browsers. Listed below are a few examples for the usage of such conditions. The Java, C#, and Python bindings include convienence methods so you don’t have to code an ExpectedCondition class yourself or create your own utility package for them.
The word [convienence] spelling error, should be [convenience]
Please help with SO_Timeout. It is coming intermittently for different different test cases.
What would be probable reason and how to fix it.
Here is logs:
Unable to take screenshot:- org.openqa.selenium.WebDriverException: Session [05fd2500-960c-4b92-b228-2594d58f30e0] was terminated due to SO_TIMEOUT Command duration or timeout: 15 milliseconds Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: 'XXXXXX', ip: 'XXXXXXXX', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_65' Driver info: org.openqa.selenium.remote.RemoteWebDriver Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=30.0, platform=WINDOWS, browserConnectionEnabled=true, nativeEvents=false, acceptSslCerts=true, webdriver.remote.sessionid=05fd2500-960c-4b92-b228-2594d58f30e0, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: 05fd2500-960c-4b92-b228-2594d58f30e0 at sun.reflect.GeneratedConstructorAccessor170.newInstance(Unknown Source) 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.execute(RemoteWebDriver.java:701) at org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(RemoteWebDriver.java:335) at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.openqa.selenium.remote.Augmenter$CompoundHandler.intercept(Augmenter.java:191) at org.openqa.selenium.remote.RemoteWebDriver$$EnhancerByCGLIB$$20b060f4.getScreenshotAs() at Utils.Browser.captureScreenshot(Browser.java:150) at Utils.Browser.takeScreenShoot(Browser.java:1074) at Utils.Log.PageInfo(Log.java:85) at Utils.Log.Failfinal(Log.java:63) at Utils.Config.logFailureException(Config.java:659) at Utils.TestListener.onTestFailure(TestListener.java:95) at org.testng.internal.Invoker.runTestListeners(Invoker.java:1833) at org.testng.internal.Invoker.runTestListeners(Invoker.java:1817) at org.testng.internal.Invoker.invokeMethod(Invoker.java:758) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:882) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1189) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108) at org.testng.TestRunner.privateRun(TestRunner.java:767) at org.testng.TestRunner.run(TestRunner.java:617) at org.testng.SuiteRunner.runTest(SuiteRunner.java:348) at org.testng.SuiteRunner.access$000(SuiteRunner.java:38) at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:382) at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.openqa.grid.common.exception.GridException: Session [05fd2500-960c-4b92-b228-2594d58f30e0] was terminated due to SO_TIMEOUT at org.openqa.grid.internal.ActiveTestSessions.getExistingSession(ActiveTestSessions.java:105) at org.openqa.grid.internal.Registry.getExistingSession(Registry.java:425) at org.openqa.grid.web.servlet.handler.RequestHandler.getSession(RequestHandler.java:240) at org.openqa.grid.web.servlet.handler.RequestHandler.process(RequestHandler.java:120) at org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:83) at org.openqa.grid.web.servlet.DriverServlet.doGet(DriverServlet.java:61) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.seleniumhq.jetty9.servlet.ServletHolder.handle(ServletHolder.java:808) at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:587) at org.seleniumhq.jetty9.server.session.SessionHandler.doHandle(SessionHandler.java:221) at org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) at org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:515) at org.seleniumhq.jetty9.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1061) at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.seleniumhq.jetty9.server.Server.handle(Server.java:499) at org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:310) at org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:257) at org.seleniumhq.jetty9.io.AbstractConnection$2.run(AbstractConnection.java:540) at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) at java.lang.Thread.run(Unknown Source)
Unable to take screenshot:- org.openqa.selenium.WebDriverException: Session [05fd2500-960c-4b92-b228-2594d58f30e0] was terminated due to SO_TIMEOUT Command duration or timeout: 6 milliseconds Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: 'RahulTesting01', ip: '10.50.6.205', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_65' Driver info: org.openqa.selenium.remote.RemoteWebDriver Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=30.0, platform=WINDOWS, browserConnectionEnabled=true, nativeEvents=false, acceptSslCerts=true, webdriver.remote.sessionid=05fd2500-960c-4b92-b228-2594d58f30e0, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: 05fd2500-960c-4b92-b228-2594d58f30e0 at sun.reflect.GeneratedConstructorAccessor170.newInstance(Unknown Source) 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.execute(RemoteWebDriver.java:701) at org.openqa.selenium.remote.RemoteWebDriver.getCurrentUrl(RemoteWebDriver.java:326) at Utils.Browser.takeScreenShoot(Browser.java:1123) at Utils.Log.PageInfo(Log.java:85) at Utils.Log.Failfinal(Log.java:63) at Utils.Config.logFailureException(Config.java:659) at Utils.TestListener.onTestFailure(TestListener.java:95) at org.testng.internal.Invoker.runTestListeners(Invoker.java:1833) at org.testng.internal.Invoker.runTestListeners(Invoker.java:1817) at org.testng.internal.Invoker.invokeMethod(Invoker.java:758) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:882) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1189) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108) at org.testng.TestRunner.privateRun(TestRunner.java:767) at org.testng.TestRunner.run(TestRunner.java:617) at org.testng.SuiteRunner.runTest(SuiteRunner.java:348) at org.testng.SuiteRunner.access$000(SuiteRunner.java:38) at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:382) at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.openqa.grid.common.exception.GridException: Session [05fd2500-960c-4b92-b228-2594d58f30e0] was terminated due to SO_TIMEOUT at org.openqa.grid.internal.ActiveTestSessions.getExistingSession(ActiveTestSessions.java:105) at org.openqa.grid.internal.Registry.getExistingSession(Registry.java:425) at org.openqa.grid.web.servlet.handler.RequestHandler.getSession(RequestHandler.java:240) at org.openqa.grid.web.servlet.handler.RequestHandler.process(RequestHandler.java:120) at org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:83) at org.openqa.grid.web.servlet.DriverServlet.doGet(DriverServlet.java:61) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.seleniumhq.jetty9.servlet.ServletHolder.handle(ServletHolder.java:808) at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:587) at org.seleniumhq.jetty9.server.session.SessionHandler.doHandle(SessionHandler.java:221) at org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) at org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:515) at org.seleniumhq.jetty9.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1061) at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.seleniumhq.jetty9.server.Server.handle(Server.java:499) at org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:310) at org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:257) at org.seleniumhq.jetty9.io.AbstractConnection$2.run(AbstractConnection.java:540) at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) at java.lang.Thread.run(Unknown Source)
Unable to log page info:- org.openqa.selenium.WebDriverException: Session [05fd2500-960c-4b92-b228-2594d58f30e0] was terminated due to SO_TIMEOUT Command duration or timeout: 6 milliseconds Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: 'RahulTesting01', ip: '10.50.6.205', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_65' Driver info: org.openqa.selenium.remote.RemoteWebDriver Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=30.0, platform=WINDOWS, browserConnectionEnabled=true, nativeEvents=false, acceptSslCerts=true, webdriver.remote.sessionid=05fd2500-960c-4b92-b228-2594d58f30e0, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: 05fd2500-960c-4b92-b228-2594d58f30e0 at sun.reflect.GeneratedConstructorAccessor170.newInstance(Unknown Source) 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.execute(RemoteWebDriver.java:701) at org.openqa.selenium.remote.RemoteWebDriver.getCurrentUrl(RemoteWebDriver.java:326) at Utils.Browser.takeScreenShoot(Browser.java:1123) at Utils.Log.PageInfo(Log.java:85) at Utils.Log.Failfinal(Log.java:63) at Utils.Config.logFailureException(Config.java:659) at Utils.TestListener.onTestFailure(TestListener.java:95) at org.testng.internal.Invoker.runTestListeners(Invoker.java:1833) at org.testng.internal.Invoker.runTestListeners(Invoker.java:1817) at org.testng.internal.Invoker.invokeMethod(Invoker.java:758) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:882) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1189) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108) at org.testng.TestRunner.privateRun(TestRunner.java:767) at org.testng.TestRunner.run(TestRunner.java:617) at org.testng.SuiteRunner.runTest(SuiteRunner.java:348) at org.testng.SuiteRunner.access$000(SuiteRunner.java:38) at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:382) at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.openqa.grid.common.exception.GridException: Session [05fd2500-960c-4b92-b228-2594d58f30e0] was terminated due to SO_TIMEOUT at org.openqa.grid.internal.ActiveTestSessions.getExistingSession(ActiveTestSessions.java:105) at org.openqa.grid.internal.Registry.getExistingSession(Registry.java:425) at org.openqa.grid.web.servlet.handler.RequestHandler.getSession(RequestHandler.java:240) at org.openqa.grid.web.servlet.handler.RequestHandler.process(RequestHandler.java:120) at org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:83) at org.openqa.grid.web.servlet.DriverServlet.doGet(DriverServlet.java:61) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.seleniumhq.jetty9.servlet.ServletHolder.handle(ServletHolder.java:808) at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:587) at org.seleniumhq.jetty9.server.session.SessionHandler.doHandle(SessionHandler.java:221) at org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) at org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:515) at org.seleniumhq.jetty9.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1061) at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.seleniumhq.jetty9.server.Server.handle(Server.java:499) at org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:310) at org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:257) at org.seleniumhq.jetty9.io.AbstractConnection$2.run(AbstractConnection.java:540) at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) at java.lang.Thread.run(Unknown Source)
Hi There,
While running the tests in selenium grid in Ubuntu(16.04) platform , am facing an issue where sendKeys doesn't enter number 5 & 6 even though it is passed as a number or a string to the input fields. Please let me know if there is anyone facing the same issue.
Platform: Ubuntu 16.04
ChromeDriver: 2.24
Selenium-standalone-Version : 2.52.0
Chrome version : 52.x
Thanks,
Sri Harsha.
The source code download link throws 404 error in http://www.seleniumhq.org/download/ page.
When I looked at the source code on src/main/webapp/jsp/header.jspf page, it is wrongly pointing to
<li><a href="/download/source.html">Source Code</a></li>
instead of github url (https://github.com/SeleniumHQ/selenium).
Am trying send keys into a text area, it says that send keys was successful in the logs. But, it is not actually sending the keys to that text area. Below is the Text area HTML info:
"<textarea name="sr_essm_info_survey_comments_2" maxlength="500" rows="10" cols="50" onfocus="this.select()">automation</textarea>"
Ran the selenium script on Selenium 2.53.1, internet explorer 11.576 and Windows.
Please help me with this issue.
Could you update the official document to the latest version of Selenium (such as version 3.4.0, at least 3.x version)? The way of building local environment for Selenium 3.x is exactly the same as selenium 2? Are you sure ?
The older document whited at beginning --> "Note to the Reader - Docs Being Revised for Selenium 2.0! " not Selenium 3.x
document link : http://www.seleniumhq.org/docs/
OS:
Windows 10
Selenium Version:
3.4.0
Browser:
Chrome 54
Can anyone please help me which version of firefox starting from FF45 is compatible with which version of selenium and geckodriver.
Store Commands and Selenium Variables
You can use Selenium variables to store constants at the beginning of a script. Also, when combined with a data-driven test design (discussed in a later section), Selenium variables can be used to store values passed to your test program from the command-line, from another program, or from a file.
The plain store command is the most basic of the many store commands and can be used to simply store a constant value in a selenium variable. It takes two parameters, the text value to be stored and a selenium variable. Use the standard variable naming conventions of only alphanumeric characters when choosing a name for your variable.
Command Target Value
store [email protected] userName
Does anyone know how to handle Chrome Basic Authentication in Selenium Java?
It does not get identified as an Alert so Alert object does not work.. :(
We run Selenium tests on a grid. With Chrome 53.0.2785.143 running in the Node & using Selenium 2.53.1, noticing the popup:
"disable developer mode extensions"
Env:
Chrome: 53.0.2785.143
Selenium: 2.53.1
ChromeDriver: 2.24
Any advice on disabling the popup?
Hi there,
My application uses kerberos to identify user.
How can I say to selenium driver that kerberos identification should be used?
Thanks for your help.
I used javascript executor to click an element(used javascript executor because faced stale element referrence issue).When i tried to click an element using this javascript executor getting error as"argument(0).click is not a fuction".
WebElement weekdate1 = driver.findElement(By.xpath(".//*[@id='dashboardleft']/div[2]/div/div[1]/a"));
((JavascriptExecutor) driver).executeScript("arguments[0].click();", weekdate1);
Can you help us to overcome this issue.Thanks in advance
migrated from SeleniumHQ/selenium#1013
@notnull1
http://docs.seleniumhq.org/docs/07_selenium_grid.jsp#what-is-selenium-grid
Chapter : How Selenium-Grid Works–With a Hub and Nodes¶
Deadlink at : "A diagram illustrates this." to : http://selenium-grid.seleniumhq.org/how_it_works.html
Steps to Repro:
Need to be able to add Selenium Confs to the calendar.
Given the following URL:
http://selenium-release.storage.googleapis.com/2.53/selenium-java-2.53.0.zip
When downloading this file the Content-Type
is correctly set. However the Content-Encoding
is set to None
which makes some anti-virus programs block the download. An expected value would e.g. be pack200-gzip
or else.
At http://www.seleniumhq.org/download/
"create local Selenium WebDriver script you"
migrated from SeleniumHQ/selenium#867
Following http://www.seleniumhq.org/docs/03_webdriver.jsp gives an error:
Error: Server Error
The server encountered an error and could not complete your request.
Please try again in 30 seconds.
Hi,
Editorial suggestion because it confused me:
On the Selenium Webdriver page, the JavaScript example does not include the line var webdriver = require('selenium-webdriver')
. The Java example does include imports. So the example does not run as-is.
Hope that helps! Pardon me if it's an oversight on my part!
So I am interested in using Selenium for some work I will be doing soon, and I decided to be proactive by looking at the documentation. I was happy to see at least one language in the "Introducing the Selenium-WebDriver API by Example" that I was familiar with - JavaScript - so I went through that snippet and got the feel for the basic syntax. When I went to the rest of the document however, I saw that there was not one instance of JS code anywhere other than that example! I then selected PHP in the header buttons (the only other language in the list that I already know) and found that it was NEVER used in the page at all!
I don't know if you are working on these sections, but if you give them as options in the language choices, the user would expect that you are supporting them in the documentation and not just "somehow implemented" in the code with no explanation of how to do it. Please add these sections in ASAP so the rest of us can start using the code without resorting to using Selenium RC (which is only slightly better documented anyway for JS and PHP), or worse, Selenium IDE (which only marginally supports Chrome).
It looks like openqa.org has gone away. In particular the following link (command reference for Selenium IDE):
http://release.seleniumhq.org/selenium-core/1.0/reference.html
(In the code here: https://github.com/SeleniumHQ/www.seleniumhq.org/blame/master/src/main/rst/02_selenium_ide.rst#L433 )
I'd submit a PR but I don't know where this content has actually moved to :(
http://www.seleniumhq.org/download/ has "2.48.0" for the C# "Client Version".
But the "Download" link points to http://selenium-release.storage.googleapis.com/2.49/selenium-dotnet-2.49.0.zip
Hi - I'm a new Selenium user.
The browser section on this page is outdated. It should have additional ie versions.
http://www.seleniumhq.org/docs/01_introducing_selenium.jsp
The top of the section is the following:
_Selenium
1.0 and Selenium-RC.
This is the old, support platform for Selenium 1.0. It should still apply to the Selenium 2.0 release of Selenium-RC.__
Hello,
The API links for each language that are in the selenium readme on github are not listed anywhere on the main documentation page. I see now that they're in the footer in a linked called "Selenium API" but that is the last place i looked. I think the API docs are useful, but I'm not the only one who had trouble finding them.
I think it would improve findability if the API links were added to the Introduction section, the Note to Reader section, or as its own link in the doc list (even if that link jjust points to the same section on the downloads page that the "Selenium API" link in the footer does).
In my case i'm on a project that uses selenium but another developer installed selenium. So I never saw the API links next to the download links.
Thanks,
Robert
In this page:
https://github.com/SeleniumHQ/www.seleniumhq.org/wiki/Documentation
the URL:
http://jrst.labs.libre-entreprise.org/jrst/en/user/RSTpresentation.html
is broken.
I have couple of selenium test code written in Java (run from cucumber), When I ran the test in jenkins using the firefox 45.0.1 the build gets through several tests and browser just hangs/stuck forever without timeout. It is widely reproducible in Jenkins and firefox hangs at random pages of a application during execution of testcase. Apparently there are no client-server comm problem and the firefox client has received the response and hangs internally before rendering the response.(We have no clues why firefox stays there longtime/forever as log, jstack, ps, server health has no weird behavior).
Issue persists even after changing selenium & firefox versions to avoid compatibility issues.
Jenkins version : 1.629
Selenium version: 2.53.1
OS: Cent-OS 6.5
Browser: Firefox
Browser version: 45.0.1
INDEX FOR CONTENT IN ORDER FOUND
[Summary]
[Notes]
[Exception]
[Stack Trace]
[OS]
[Browser]
[Selenium]
[Edge Driver]
[Visual Studio]
[Script Code]
SUMMARY:
WebDriver, C#, Edge - Timeout Exception in Webdriver.dll
NOTES:
EXCEPTION:
OpenQA.Selenium.WebDriverException was unhandled
HResult=-2146233088
Message=The HTTP request to the remote WebDriver server for URL http://localhost:50861/session timed out after 60 seconds.
Source=WebDriver
STACK TRACE -
Exception thrown: 'OpenQA.Selenium.WebDriverException' in WebDriver.dll
The HTTP request to the remote WebDriver server for URL http://localhost:51410/session timed out after 60 seconds.
at OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request)
at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
at OpenQA.Selenium.Edge.EdgeDriver..ctor(EdgeOptions options)
at OpenQA.Selenium.Edge.EdgeDriver..ctor()
at Bing.Program.Main(String[] args) in C:\Users\jburke\Documents\Visual Studio 2015\Projects\Bing\Bing\Program.cs:line 25
The request was aborted: The operation has timed out.
at System.Net.HttpWebRequest.GetResponse()
at OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request)
OS -
Windows 10 Home
Version 1511
Build 10586.494
64Bit
BROWSER -
Microsoft Edge 25.10586.0.0
Microsoft EdgeHTML 13.10586
SELENIUM -
package id="Selenium.Support" version="2.53.1" targetFramework="net452"
package id="Selenium.WebDriver" version="2.53.1" targetFramework="net452"
EDGE DRIVER -
Microsoft Web Driver Version 2.0.0.0
File Version 10.0.10586.0
Product Version 10.0.10586.0
VISUAL STUDIO:
Microsoft Visual Studio Community 2015
Version 14.0.25424.00 Update 3
Microsoft .NET Framework
Version 4.6.01038
SCRIPT CODE -
https://blogs.windows.com/msedgedev/2015/07/23/bringing-automated-testing-to-microsoft-edge-through-webdriver/
ERROR OCCURS AT LINE -> driver = new EdgeDriver();
using OpenQA.Selenium;
using OpenQA.Selenium.Edge;
using OpenQA.Selenium.Remote;
namespace EdgeDriverTests
{
public class Program
{
/*
* This assumes you have added MicrosoftWebDriver.exe to your System Path.
* For help on adding an exe to your System Path, please see:
* https://msdn.microsoft.com/en-us/library/office/ee537574(v=office.14).aspx
*/
static void Main(string[] args)
{
RemoteWebDriver driver = null;
try
{
driver = new EdgeDriver();
// Navigate to Bing
driver.Url = "https://www.bing.com/";
// Find the search box and query for webdriver
var element = driver.FindElementById("sb_form_q");
element.SendKeys("webdriver");
element.SendKeys(Keys.Enter);
Console.ReadLine();
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
finally
{
if (driver != null)
{
driver.Quit();
}
}
}
}
}
Hi everybody,
I have been trying to double click to a webelement on safari web browser but i didnt make it yet.
Actions actions = new Actions(myRemoteWebDriver);
actions.moveToElement(myWebElement).doubleClick().perform();
I used code above. It works on google chrome but it doesnt work on Safari.
I found following code on internet but it doesnt work too.
Actions action = new Actions(myRemoteWebDriver);
action.moveToElement(myWebElement);
action.clickAndHold();
action.moveByOffset(100,200).moveByOffset(-10, -20).moveByOffset(-10, -10).moveByOffset(-10,-20).build().perform();
action.release().build().perform();
Can someone help me about this issue ?
Note : I use java maven project with following dependency.
org.seleniumhq.selenium
selenium-server
3.0.1
Thanks and regards.
The Selenium doc at 'http://www.seleniumhq.org/docs/02_selenium_ide.jsp#alerts-popups-and-multiple-windows' displays a lot of garbage like –, ’, “. The UTF-8 characters are getting replaced by these characters, which makes it difficult to refer the document.
Steps to reproduce:
I am trying to run a simple script using selenium and Firefox web driver.
Please find the details:
Platform : Windows
Python Version: Python 2.7.11
selenium module version : 2.53.2
Issue:
While opening the browser it is crashing and showing ''Firefox has stopped working"
Code:
from selenium import webdriver
driver = webdriver.Firefox()
driver.get("https://www.google.com")
per language for client setup.
per browser for binding direct or standalone server. include mobile!
related issues:
SeleniumHQ/docs#69
https://code.google.com/p/selenium/issues/detail?id=8327
I've been trying to access the link for the past three or four days. Down for everyone reports that it is down for .. everyone, of course.
Bad gateway (502) when trying to access http://release.seleniumhq.org/selenium-core/1.0.1/reference.html
Steps to reproduce the problem:
What is the expected behavior?
Test should not failed
What went wrong?
During testing I see folow error in console:
[Facebook\WebDriver\Exception\UnknownServerException] chrome not reachable
(Session info: headless chrome=59.0.3071.104)
(Driver info: chromedriver=2.29,platform=Linux 4.11.3-1-ARCH x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 6 milliseconds
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'localhost', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.11.3-1-ARCH', java.version: '1.8.0_131'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.29, userDataDir=/tmp/.org.chromium.Chromium.728tu6}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=59.0.3071.104, platform=LINUX, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=}]
Session ID: 5d06184c4ef6e78af13983da29ed078f
Did this work before? No
Chrome version: 59.0.3071.104 Channel: stable
OS Version: Linux 4.11.3-1-ARCH
Flash Version:
Selenium: 3.4.0
Test framework: PHP Codeception
PHP 7.1.6
From @Carrrot on July 5, 2017 15:44
Hi i am experiencing the same problem like user Lorelehy on Google groups, therefore i used his/hers post.
I can not access the documentation of web driver.
http://www.seleniumhq.org/docs/03_webdriver.jsp
Error: Server Error
The server encountered an error and could not complete your request.
Please try again in 30 seconds.
The documentation is also not available in GitHub.
Thank you for the help you can give me.
I ask you kindly to fix the documentation.
BR,
Stephan
Copied from original issue: SeleniumHQ/docs#131
The page title in the browser tab contains an invalid character. It reads Note to the Reader–Docs Being Revised for Selenium 2.0! — Selenium Documentation, as opposed to the page header which is Note to the Reader–Docs Being Revised for Selenium 2.0!.
In the browser inspector of Chrome, we can find the invalid character:
<title>Note to the Reader–Docs Being Revised for Selenium 2.0! — Selenium Documentation</title>
I am running Windows 7 (English) and Chrome 44.0.2403.125.
Link to page: http://www.seleniumhq.org/docs/00_Note_to-the-reader.jsp
Go to Documentation and click on some topic.
Once inside a topic, try to navigate to another topic by clicking on a topic given under " Table of Contents ".
Expected result: The page should get refreshed with the topic on top.
Actual result: No changes. PFA the screenshot.
I can see this issue has been reported earlier but didn't find any concrete solution.
Can someone help, Thanks.
org.openqa.selenium.WebDriverException: Error communicating with the remote browser. It may have died. Build info: version: '2.46.0', revision: '87c69e2', time: '2015-06-04 16:16:47' System info: host: 'hub', ip: '*', os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.32-573.8.1.el6.x86_64', java.version: '1.8.0_45-internal' Driver info: driver.version: EventFiringWebDriver Command duration or timeout: 421 milliseconds Build info: version: '2.46.0', revision: '61506a4624b13675f24581e453592342b7485d71', time: '2015-06-04 10:22:50' System info: host: '*', ip: '*', os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.32-573.8.1.el6.x86_64', java.version: '1.7.0_76' *** Element info: {Using=css selector, value=.btn-action.tif-new} Session ID: de133790-7d12-4d98-83da-5a5bd7191138 Driver info: org.openqa.selenium.remote.RemoteWebDriver Capabilities [{platform=LINUX, javascriptEnabled=true, acceptSslCerts=true, browserName=firefox, rotatable=false, locationContextEnabled=true, webdriver.remote.sessionid=de133790-7d12-4d98-83da-5a5bd7191138, version=42.0, cssSelectorsEnabled=true, databaseEnabled=true, handlesAlerts=true, webStorageEnabled=true, nativeEvents=false, applicationCacheEnabled=true, takesScreenshot=true}] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:605) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:358) at org.openqa.selenium.remote.RemoteWebDriver.findElementByCssSelector(RemoteWebDriver.java:447) at org.openqa.selenium.By$ByCssSelector.findElement(By.java:426) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:350) at org.openqa.selenium.support.pagefactory.DefaultElementLocator.findElement(DefaultElementLocator.java:69) at org.openqa.selenium.support.pagefactory.internal.LocatingElementHandler.invoke(LocatingElementHandler.java:38) at com.sun.proxy.$Proxy17.click(Unknown Source) at com.*.BaseElement.click(BaseElement.java:71) at com.*.WaitEnabledBaseElement.click(WaitEnabledBaseElement.java:34) ***** at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80) at org.testng.internal.Invoker.invokeMethod(Invoker.java:714) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died. Build info: version: '2.46.0', revision: '87c69e2', time: '2015-06-04 16:16:47' System info: host: 'hub', ip: '*', os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.32-573.8.1.el6.x86_64', java.version: '1.8.0_45-internal' Driver info: driver.version: EventFiringWebDriver Build info: version: '2.46.0', revision: '61506a4624b13675f24581e453592342b7485d71', time: '2015-06-04 10:22:50' System info: host: '*', ip: '*', os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.32-573.8.1.el6.x86_64', java.version: '1.7.0_76' Driver info: driver.version: unknown
Webdriver ver: 2.53
Issue:
Note: When running this from Eclipse, the browser can be closed, regardless of using .close() or .quit()
Could you please post the javadoc and javasrc jars to maven for versions after 2.44?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.