Latest Questions tagged Selenium

Browse all latest questions tagged Selenium

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 31 Aug, 2022
Python - Selenium clicking next button programmatically until the last page

hi I'm new to web scraping and have been trying to use Selenium to scrape a forum in python I am trying to get Selenium to click "Next" until the last page but I am not sure how to break the loop. an...

Published 16 Sep, 2022
Java - How to get Chrome browser console log [INFO] entries with Selenium

I am having issues getting chrome browser console log [INFO] entries with Selenium and the only Level type of entries I am getting are the errors(WARNING, SEVERE). Is there any way to get anything di...

Published 29 Aug, 2022
Python - Select the focused element in Selenium

What I'm dealing with In one of my tests I need to interact with a pop-up input field that is very hard to select using a regular css selector or xpath. I know, however, that this pop-up box will have...

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 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 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 May, 2022
Python - How to add multiple extensions to selenium chrome webdriver

How to add multiple extensions to selenium chrome webdriver? I tryed add extensions using comma, but getting errors chrome_options.add_extension(r'C:\Users\Administrator\Desktop\chromedriver_win32\e...

Published 26 Jun, 2022
Python - WebDriverException: Message: newSession with GeckoDriver Firefox v65 and Selenium through Python 3.7

I am trying to use Python 3.7 + Selenium + Geckodriver + Firefox v65.0 for scraping. New window is opening, but Firefox does not sent correct respond about session to Python and crashes after 30 secon...

Published 14 Sep, 2022
Java - Selenium SQL Database Connection

I'm running into an issue when I try to run a simple Selenium test that connects to a SQL database. The test will not run, it seems to fail on compiling but does not provide any information on where t...

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 16 Apr, 2022
Javascript - Protractor: Scroll down

I have an button on my page that is visible when the user scrolls down. Because of this, protractor tests give me an error: UnknownError: unknown error: Element is not clickable at point (94, 188)...

Published 14 Sep, 2022
Java - getText() method of selenium chrome driver sometimes returns an empty string

I have a curious case where the selenium chrome driver getText() method (java) returns an empty string for some elements, even though it returns a non-empty string for other elements with the same xpa...

Published 16 Apr, 2022
Javascript - How to disable Javascript when using Selenium?

I am wondering how do I disable javascript when using selenium so I can test server side validation. I found this article but I don't know what to really do. Like I make this javascript file then wha...

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