Category "selenium-webdriver"

Firefox (geckodriver): How do I inject JavaScript functions into a page so that they persist upon return from 'executeScript'?

I have a Selenium Java library that includes a JavaScript "glue" library that enables JavaScript functions to throw serialized Java exceptions. This enables muc

getting NoSuchWindowException while scrapping twitter usernames using Selenium

I have been trying to scrape twitter usernames by going inside the followers page but the issue is if I leave my pc there after some time I get this exception a

How to parameterize the locators?

I am trying store all values required for locators in Property File: This is Property File: url=https://www.google.com value=search This is my object repos

Restricting browser drivers in selenium

I am a newbie to selenium. Just wanted to know how do I restrict the script to take only one version of a browser. I dont want to update my browser driver again

Put value in divs per digit(6-digit code) with Python Selenium

I put value in 6-digit code but i cant continue. I do this: d = driver.find_element_by_xpath('//*[@id="root"]/div/div/div/div/div/div[2]/div[1]/div/div/div/

Selenium 4 in Python works with Edge option headless False, but not with True

So I have function which takes some information from a website (https://www.fragrantica.com/perfume/Dior/Sauvage-Eau-de-Parfum-48100.html ; and I want to take r

Selenium webdriver -> closing my chrome after one second

I have issue with selenium from selenium import webdriver from selenium.webdriver.chrome.options import Options options = Options() options.binary_location = "

Cannot fill in a word in google flight website using selenium with C#

I trying to fill in the word "LHR" in the 'from' filed in Google flights website. But after typing the letter L the program exit and finished successfully witho

WebDriverException: failed to wait for extension background page to load: xxx Selenium

When I try to add an extension on my script like for example "Selenium" I get this error message: selenium.common.exceptions.WebDriverException: Message: unkn

Problem locating element with xpath in Selenium

I am having some troubles to locate an element with Selenium. The page html where I'm looking for it is: enter image description here Specifically, I want to ge

How to fix tiktok selenium robot detection

How to fix TikTok selenium robot detection Background-Info I'm creating a python selenium bot to do things on the TikTok website. The user will log in manually

Scraping data with BeautifulSoup and Selenium

I am using BeautifulSoup and Selenium to extract web data (beautifulsoup to parse the HTML page and Selenium to click Next to get to the next list of items on t

What causes java.lang.NoClassDefFoundError: org/openqa/selenium/internal/Require when using WebDriverManager 5.0.3

I have a spring boot application, that I want to test with Selenium. I'm using WebDriverManager v5.0.3 When settin up the WebDriver WebDriverManager.chromedrive

Could not get version for google-chrome with the command: powershell "$ErrorActionPreference='silentlycontinue' using WebDriverManager with Selenium

When running a python script with selenium and chrome driver I am getting the error below. I use the script in question for some a pretty simple automation runn

Selenium RemoteWebDriver Usage Example (How to fix selenium.WebDriverException: chrome not reachable)

Not exactly as Chrome not reachable Selenium WebDriver error selenium.WebDriverException: chrome not reachable selenium.WebDriverException: chrome not reachable

What is the difference between Selenium server and WebDriver (not RC, not Remote, not 4.0)?

Please note that I am not talking about Selenium RC or RemoteWebDriver or the old Selenium server or the standalone server. I am also not talking about Selenium

how to scroll a local div element with selenium

I am trying to scroll through a local div element using driver.find_element_by_xpath(element).send_keys(Keys.PAGE_DOWN) the problem is that element is not an el

On Selenium WebDriver how to get Text from div with Mark Tag

On Selenium Webdriver, how I can retrieve entire text from div with Mark Tag? I need to verify that the word 'correctly' is present. Example HTML code: <div

Pytest hangs indefinitely running tests after Selenium image update

A day ago selenium updated their standalone-images (https://hub.docker.com/search?q=selenium&type=image) and at the same time selenium 4.0.0 was released on

Selenium on Raspberry Pi headless 2022

I have a weather station and take a screenshot of a webpage (windy.com) once an hour to integrate into my display which runs on a Pi 3 It was working perfectly