Questions tagged [selenium-remotedriver]

The Remote WebDriver implementation Controls a browser by sending commands to a remote server. This server is expected to be running the WebDriver wire protocol as defined in JsonWireProtocol.

The Remote WebDriver implementation Controls a browser by sending commands to a remote server. This server is expected to be running the WebDriver wire protocol as defined in JsonWireProtocol

  • Python implementation:

    class selenium.webdriver.remote.webdriver.WebDriver(command_executor='http://127.0.0.1:4444/wd/hub', desired_capabilities=None, browser_profile=None, proxy=None, keep_alive=False, file_detector=None, options=None)
    

Reference: selenium.webdriver.remote.webdriver

48 questions
11
votes
7 answers

selenium.JavascriptException: javascript error: Failed to execute 'elementFromPoint' on 'Document': The provided double value is non-finite

using chrome 78 and chromedriver78 When i click an audio file or try to stop an audio using selenium tests i am getting this error. Error: org.openqa.selenium.JavascriptException: javascript error: Failed to execute 'elementsFromPoint' on…
6
votes
1 answer

Is there a way too prevent selenium automatically terminating idle sessions?

I am using selenium for automating some interactions with websites. This process involves opening several browsers and having them perform actions intermittently. However, occasionally there are long (> 1 hour) periods of inaction, and selenium…
5
votes
2 answers

ChromeDriver desired_capabilities has been deprecated, please pass in an Options object with options kwarg

I am getting this deprecation warning when I start my Selenium webdriver.Remote in python, my selenium version is selenium==4.0.0b2.post1 desired_capabilities has been deprecated, please pass in an Options object with options kwarg What is that…
The Dan
  • 1,408
  • 6
  • 16
  • 41
4
votes
2 answers

How to suppress "warning" using Selenium::Remote::Driver?

no warnings; use Selenium::Remote::Driver; my $driver = Selenium::Remote::Driver->new; $driver->get('https://www.crawler-test.com/'); $driver->find_element_by_xpath('//a[.="text not found"]'); How can I get the above code not to print this…
CJ7
  • 22,579
  • 65
  • 193
  • 321
4
votes
1 answer

How to scroll element into view using remDr command in r?

I am trying to scroll until an element is visible on the page so Selenium can double click the element. If the element is not visible, I keep receiving error Selenium message:(189, 2887) is out of bounds of viewport width (1600) and height…
3
votes
0 answers

selenium.common.exceptions.JavascriptException: Message: javascript error: Cannot redefine property: webdriver

I am executing the following script in Selenium Remotedriver and getting an error: self.driver.execute_script("Object.defineProperty(navigator, 'webdriver', {get: () => undefined})") The idea behind the code is to hide the webdriver parameter The…
The Dan
  • 1,408
  • 6
  • 16
  • 41
3
votes
1 answer

How to fix SessionNotCreatedException: Unable to create new remote session when trying to run Firefox?

I have a Selenium server 4 with Chrome and Firefox. Chrome works fine but as I try to run Firefox it throws me an error: org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities…
Čamo
  • 3,863
  • 13
  • 62
  • 114
3
votes
0 answers

Cannot authenticate a URL with password containing "@" in Selenium/ChromeDriver

I'm trying to open a URL on ChromeDriver (for Chrome 75.0.3770.142) with authentication having a password containing the character "@", the solution of adding username/password to URL like: "https://username:p@ssword@www.test.com" and even…
3
votes
1 answer

org.openqa.selenium.UnsupportedCommandException: Variable Resource Not Found using Selenium

I am using the phantomjs webdriver using selenium protocol to render the webpage.When I try to render the webpage ,I am getting the following error in RemoteWebDriver.get(url) method eventhough my webdriver is running. I have also tried restarting…
2
votes
0 answers

How to add a list of cookies to selenium remote driver?

I am trying to add a list of cookies to a selenium chrome instance running remotely, the singular method add_cookie is too slow for my needs with each request taking ~5-10 seconds and roughly 1000-5000 cookies this would become intractable. I have…
2
votes
0 answers

No "browser" logs available on selenium grid nodes (Firefox+Chrome)

Our selenium grid works fine with Firefox and Chrome nodes. But we cannot get access to the browser logs. Setup is as follows: MutableCapabilities options = new FirefoxOptions(); LoggingPreferences preferences = new…
pintxo
  • 2,085
  • 14
  • 27
2
votes
1 answer

Why the error occured python3 with selenium

I learning python recent, but I have some error. environment python3 , chrome , webdriver(chrome) from selenium import webdriver import time import random import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) driver =…
1
vote
0 answers

Webapplication automation on Browserstack

Webapplication automation on Browserstack -When we try to run WebApplication script with hardcoded URL > it runs successfully without any error on device Iphone 14 latest browser, same way when we are trying to read URL from configProperties - it is…
1
vote
0 answers

How to upload a local file during test execution on AWS Device Farm (desktop)

I have a portion of a website that I'm testing that accepts uploading of image files. The DOM element is a standard input type=file. There are zero issues with test execution locally. The test fails in AWS Device farm, I'm assuming because even…
1
vote
1 answer

Setting up Chrome DevTools (Selenium 4) Using Remote WebDriver in Python

I've been trying to set up the use of the Chrome DevTools using Selenium 4 and Python. I've been able to get it to run locally (without any of the async stuff), but when I try to use the webdriver.Remote implementation, it crashes. Here is an…
1
2 3 4