Questions tagged [webdriver-w3c-spec]

WebDriver W3C Recommendation: WebDriver is a remote control interface that enables introspection and control of user agents. It provides a platform- and language-neutral wire protocol as a way for out-of-process programs to remotely instruct the behavior of web browsers.

WebDriver W3C Recommendation

WebDriver is a remote control interface that enables introspection and control of user agents. It provides a platform- and language-neutral wire protocol as a way for out-of-process programs to remotely instruct the behavior of web browsers.

README: https://github.com/w3c/webdriver

Repository for any errors or issues reported since publication: https://github.com/w3c/webdriver/issues

26 questions
105
votes
15 answers

Selenium webdriver: Modifying navigator.webdriver flag to prevent selenium detection

I'm trying to automate a very basic task in a website using selenium and chrome but somehow the website detects when chrome is driven by selenium and blocks every request. I suspect that the website is relying on an exposed DOM variable like this…
Ajanth
  • 2,435
  • 3
  • 20
  • 23
20
votes
8 answers

Cannot call non W3C standard command while in W3C mode (Selenium::WebDriver::Error::UnknownCommandError) with Selenium ChromeDriver in Cucumber Ruby

We have Cucumber Ruby automation framework where we run few tests on Chrome headless browser in a Docker on Jenkins. A few days ago we started receiving an error "This version of ChromeDriver only supports Chrome version 75" this time we were using…
19
votes
8 answers

How to turn off w3c in chromedriver to address the error unknown command: Cannot call non W3C standard command while in W3C

With version 75 of Chrome just released, our tests no longer run properly. They give the stacktrace pasted below. We are using ruby on rails v. 5.1.6.2 with rspec, selenium-webdriver…
13
votes
1 answer

What is the difference between Protocol and Json Wire Protocol

Protocol: A standard to define a method of exchanging data over a network. If a browser wants to communicate with a server, it has to create an HTTP request and send that HTTP request to the server to convey its request of resources and options. The…
learningQA
  • 641
  • 1
  • 5
  • 20
5
votes
0 answers

Capture network traffic in Selenium in 2022

What is the best way in 2022 to capture network logs in selenium? I am aware there are multiple examples that use browsermob as a proxy server. But looking at GitHub looks like browsermob repo is not being maintained anymore.
A.Huzaifa
  • 141
  • 1
  • 8
5
votes
1 answer

Difference between JsonWireProtocol mechanisms and the new standards in W3C Living Document when using Selenium

I'm wondering what are the differences between the mechanisms in JsonWireProtocol (Status: OBSOLETE) and W3C Living Document from 31 December 2019 (the new standard) when using Selenium for UI tests. I know that Selenium have used the following:…
4
votes
1 answer

INFO: Detected dialect: W3C using Selenium Java

I have a web automation project that runs over a website, performs registration of new user and chooses several items. all elements are detected by findElement(By ). Suddenly it stopped working completely and not able to find any of the elements. My…
4
votes
2 answers

Is it possible to programmatically determine whether W3C action commands are used?

The Selenium Javadoc for Actions.moveToElement indicate that the meanings of the xOffset and yOffset arguments are as follows. xOffset - Offset from the top-left corner. A negative value means coordinates left from the element. yOffset - Offset from…
merlin2011
  • 71,677
  • 44
  • 195
  • 329
3
votes
2 answers

How does Selenium click on elements that are 50% on screen and 50% not on screen?

There is a div-Element. 50% of its size are on the screen. The other 50% go over the screen height and are not visible. There is no scrolling possible. I tried to automate a test with Selenium and click on that div-element, but sometimes it works…
hardfork
  • 2,470
  • 1
  • 23
  • 43
3
votes
1 answer

What is the difference between ChromeDriver and WebDriver in selenium?

If we create : ChromeDriver driver=new ChromeDriver(); chrome driver methods will be executed. And if we create : WebDriver driver=new ChromeDriver(); again ChromeDriver methods are executed [as per method overriding]. Then why we write latter…
2
votes
1 answer

"Error No session in progress" error for simple example using webdriver-w3c

{-# LANGUAGE OverloadedStrings #-} module Main where import Web.Api.WebDriver.Endpoints import Web.Api.WebDriver main :: IO () main = do x <- execWebDriverT defaultWebDriverConfig doLogin print x doLogin :: WebDriverT IO () doLogin = do …
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
2
votes
1 answer

How to get currently active tab index on Chrome via Selenium?

I'm creating app which is half-automated (user is opening tabs (attention) and if he wants to dump one of them he just clicks hot-key). But when user opens to much tabs, I need to know to which one I should switch. How can i get currenttab index.…
GrandMaster
  • 31
  • 1
  • 3
2
votes
2 answers

Selenium and non-headless browser keeps asking for Captcha

I was running into an issue in which one of our sites kept asking for captcha in headless mode in a browser in the cloud, so I switched it to non headless, so I could enter the captcha myself, and I thought the next times it would work, perhaps…
CCC
  • 2,642
  • 7
  • 40
  • 62
2
votes
2 answers

How to speed up Java Selenium Script,with minimum wait time

I'm currently working on a java selenium Project, which is usually a small script where I have to check for each element for it's presence and based on that some actions are triggered but our main concern is time duration to finish the…
1
vote
1 answer

How to convert windows IDs to human readable format using Selenium and Python

I know that if I want to know the corresponding IDs of the windows I currently have open, I use the following sentence on Python: current_windows = driver.window_handles print(current_windows) Output (suppose there were 2 windows…
1
2