Latest Questions tagged Selenium Webdriver

Browse all latest questions tagged Selenium Webdriver

Published 01 May, 2022
Python - How to get the localStorage with Python and Selenium WebDriver

What's the equivalent of: driver.get_cookies() to get the LocalStorage instead of Сookies?

Published 24 Apr, 2022
Python - Running pyinstaller another pc with Chromedriver

I am trying to add Chromedriver inside an executable in pyinstaller. While this is possible it seems that I get the below error message when trying to run this on another computer. I have tried a nu...

Published 24 Apr, 2022
Python - How to set Selenium Python WebDriver default timeout?

Trying to find a good way to set a maximum time limit for command execution latency in Selenium Python WebDriver. Ideally, something like: my_driver = get_my_driver() my_driver.set_timeout(30) # sec...

Published 18 Oct, 2022
Java - How to attach custom/existing screenshot in allure report?

Generally, I am using below code to take a screenshot and attach in allure report : @Attachment(value = "Page Screenshot", type = "image/png") public static byte[] saveScreenshotPNG(WebDriver driver)...

Published 29 Aug, 2022
Python - How to mouseover in python Webdriver

It seems this is the way to do hover / mouseover in webdriver, at least in the java api: Actions action = new Actions(driver); action.moveToElement(element).build().perform(); action.moveByOffset(1,...

Published 04 Sep, 2022
Java - how to Pass command line argument ( baseURL) using java for selenium WebDriver

i have created a runnable jar for my Selenium webDriver suite. now i have to test this in multiple base URL,As the baseURl will change according to the need. Can somebody please guide me through this....

Published 23 Jun, 2022
Python - DevTools listening on ws:// with Selenium and Python

I am using python + selenium for web browser automation and getting this error. DevTools listening on ws:// [5096:1196:0909/183254...

Published 26 Aug, 2022
Python - Send_keys() doesn´t send the full string

I´m trying to login to a website with selenium and Chrome in Python. I´m able to locate the user and password field, and the button. The only thing I´m not capable of is filling the password field wit...

Published 02 Sep, 2022
Java - How to use Selenium WebDriver on local webpage (on my PC) instead of one located somewhere online?

I want to use Selenium WebDriver on a webpage that I have on my hard disc. I've tried to something like: selenium = new WebDriverBackedSelenium(driver, "C:\\...dispatcher.html"); ...instead of the...

Published 01 Jun, 2022
Python - "NoSuchWindowException: no such window: window was already closed" while switching tabs using Selenium and WebDriver through Python3

I have a form that opens in a new tab when I click on it. When I try to navigate to that new tab, I keep getting a NoSuchWindowException. Code is pretty straightforward. 'myframe' is the frame within...

Published 13 Jun, 2022
Python - Python Selenium Right Click

Trying to find some text and then right click on that text. The table is dynamic so I cannot presume to know the cell positions of where the value to search for is or the value to click on. so for exa...

Published 07 Sep, 2022
Java - Selenium test Java maven dependencies

I created tests on selenium ide. I want to run java files on intellij idea. I prepared pom.xml like that but I have problem with running tests. dependencies> <dependency> <gro...

Published 07 Sep, 2022
Java - What is the best way to avoid NoSuchElementException in Selenium?

I have written few test cases in Selenium WebDriver using Java and execute them on grid (hub and multiple nodes). I have noticed that a few test cases fail due to NoSuchElementException. What is the b...

Published 11 Jun, 2022
Python - MaxRetryError: HTTPConnectionPool: Max retries exceeded (Caused by ProtocolError('Connection aborted.', error(111, 'Connection refused')))

I have one question:I want to test "select" and "input".can I write it like the code below: original code: 12 class Sinaselecttest(unittest.TestCase): 13 14 def setUp(self)...

Published 17 Aug, 2022
Java - Best way to check that element is not present using Selenium WebDriver with java

Im trying the code below but it seems it does not work... Can someone show me the best way to do this? public void verifyThatCommentDeleted(final String text) throws Exception { new WebDriverWait...