Code Monkey home page Code Monkey logo

www.seleniumhq.org's Introduction

This repository is deprecated

The new website and docs can be seen at https://github.com/SeleniumHQ/seleniumhq.github.io

seleniumhq.org Travis Status

Things you need to have installed to run the docs:

To build the docs and run locally (command line):

mvn appengine:devserver

You will then be able to access them at:

http://localhost:8080

deploying to google appengine run:

mvn appengine:update

You will need to authenticate with google and this will only work if you have a @seleniumhq.org account.

www.seleniumhq.org's People

Contributors

abhijain2618 avatar ajayk avatar andreastt avatar automatedtester avatar barancev avatar corevo avatar davehunt avatar ddavison avatar diemol avatar hugs avatar illicitonion avatar jarib avatar jimevans avatar juangj avatar lightbody avatar llaskin avatar lmtierney avatar lukeis avatar lukeis-sfdc avatar manoj9788 avatar paulkc avatar peter-kehl avatar pgrandje avatar pnewhook avatar rasmusbergpalm avatar samitbadle avatar santiycr avatar shs96c avatar tarun3kumar avatar titusfortner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

www.seleniumhq.org's Issues

Selenium WebDriver Double click function doesnt work on Safari 10

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.

Can't add extension in headless chrome browser in selenium

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

How to start ChromeDriver with existing login

  1. I've created a profile in chrome and i logged in some accounts. (ex: profile name - profile1)
  2. Then Copied, Pasted and Rename the new profile folder. In chrome it considered there was new profile created. (ex: profile name - profile1_duplicate)
  3. Now i am setting the profile1_duplicate as the user directory(user-data-dir) path to the driver
  4. Now i am open the driver but i still need to login again.

Firefox hangs longtime/forever in page loading state during execution of selenium tests

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

sendkeys not working on IE 11

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.

Selenium WebDriver - Documentation site doesn't work

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

Getting Error message while running grid version 2.53: Session was terminated due to SO_TIMEOUT Command duration or timeout: 15 milliseconds

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)

Typo in <title>: **Note to the Reader–Docs...**

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

Timeout Exception in Webdriver.dll when running script more than once

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

  • Script only able to be executed once. Subsequent attempts result in a time out exception. (stack trace shown below)
  • This script opens Edge, navigates to Bing and finds an element

NOTES:

  • Restarting the OS enables the script to be run once again.
  • Similar code running in a grid configuration requires restarting the node after the script execution to enable the script to be run once again.
  • Similar code using the Java language bindings and Edge works every time. No problems.

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();
            }
        }
    }
}

}

Missing JavaScript code in most of page and PHP code in all of the Selenium 2 documentation

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).

Could you please update document to 3.4.0 ?

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

had trouble finding the links to the API documentation for each language

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

sendKeys() doesn't enter number 5 ,6 in Ubuntu

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.

selenium and kerberos

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.

Javascript example not working

http://www.seleniumhq.org/docs/03_webdriver.jsp
Example in section - Introducing the Selenium-WebDriver API by Example

Issues:

  1. ReferenceError: webdriver is not defined. (fix: By adding a require statement)
  2. TypeError: Target browser must be a string, but is ; did you forget to call forBrowser() ( fix : make a forBrowser('firefox') call)
  3. Error: The geckodriver.exe executable could not be found on the current PATH. (Download and set the geckodriver path in the example)

Firefox version 47.0 crashing while opening through selenium web driver

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")

RE:argument(0).click is not a fuction in javascriptexecutor

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

Webdriver.close() or quit() is not closing the browser in.jar format

Webdriver ver: 2.53

Issue:

  • The following three files are in the same default package. An executable jar was created for this
    package.
    -> LoginTest_Firefox.java
    -> LoginTest_Chrome.java
    -> LoginCredentials.java
  • Run the jar file created for the project.
  • At the end of the execution, the browser remained and did not closed. [NG]

Note: When running this from Eclipse, the browser can be closed, regardless of using .close() or .quit()

Issues.zip

Bad download link in website

The link for downloading the latest selenium standalone server version (3.1.0) actually downloads version 3.0.1

downloadlink

Error Communicating with Remote Browser

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

seems like your target & value fields are reversed here (docs):

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

FluentWait<T> should support wait.while(isTrue) semantics

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)

Chrome in headless mode failed after window.print()

Steps to reproduce the problem:

  1. Start page with script that consist:
    let win = window.open(url);
    win.print();
    Where url can be 'https://google.com'
  2. Start selenium tests in headless mode.

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

Spelling error

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]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.