Category "selenium"

Upgrade to Selenium 4 - The type or namespace name 'ChromeMobileEmulationDeviceSettings' could not be found

I'm upgrading a C# program that was using Selenium 3. After updating Selenium to version 4, I get this error The type or namespace name 'ChromeMobileEmulation

python selenium scraping a betting site

I recently started coding a program with python selenium. The goal of the project is to calculate arbitrage possibilitys between two sport bookies (but that doe

Selenium headless chrome with proxy authentication

I'm working on automation of Headless Chrome WebDriver (100.0.48.96.60) using Selenium (4.1.0) and C# (.Net 5.0/Console application). I want to add Proxy Authen

I need to make a random selection of two arguments with a percentage

I need to make a random selection of two arguments with a percentage For example, variable a(like) has a 82.5% chance of falling out, and variable b(dislike) ha

Selenium : googlemap markers dont appear in my xpath elements?

I would like to scrape some informations from a googlemap applet. The page is here : http://www.annuaire-des-psychologues.fr/psychologue/limousin/ You can click

How can I mute the browser/tab in selenium using the geckodriver

I'm trying to mute the browser/tab in selenium since headless mode doesnt mute sounds, I've searched but all I could find was chrome solutions and they didn't w

AttributeError: 'int' object has no attribute 'split' pandas

Please, I know there are several issues related to this error of mine, but I'm learning, I don't understand almost anything, so please, if it's not asking too m

How to check if an element is not displayed in selenium python

How could I check to see if an element is not displayed. I would think it looks something like this. if(element.is_not_displayed): doSomething() else do

How can we monitor the data for test execution on different nodes in a distributed execution on Selenium grid setup on local VMs?

I need some help on the below query: Currently we are using local VMs for Selenium grid execution. (Migration is happening from Selenium 3 to 4 but currently Do

How to wrap the return of @FindBy into another class

The usage of the annotation @FindBy of selenium is: @FindBy(xpath='//xpath/selector') private WebElement element; public void setText(String te

Object created for another class opening as new web driver window

public class ListPage extends BaseTest {private ListPageManage Object; private Test Object1; public void getList() throws InterruptedException { this.Obje

selenium/standalone-chrome with selenium 4.0.0 return DNS ERROR

Configuration: Python 3.10/selenium 3.141.0/selenium/standalone-chrome:latest WORKS! but when I change just selenium version to 4.0.0: Configuration: Python 3

how to use selenium on web apps built with gradio?

I am trying to click a button on selenium on a web app built using selenium. But ending up with error "element not found". I want to click the submit button usi

headless chrome on docker M1 error - unable to discover open window in chrome

I'm currently trying to run headless chrome with selenium on m1 mac host / amd64 ubuntu container. Because arm ubuntu does not support google-chrome-stable pack

Access Popup Source code - Python requests

I'm trying to scrape some data from a website. Adress: https://park4night.com/carte_lieux?lat=41.25807499996962&lng=9.426118999656891&zoom=38 I would li

selenium webdriver can't click on button using driver.find_element_by_css_selector

can't click on button using driver.find_element_by_css_selector i try use this Locating Elements driver.find_element_by_css_selector driver.find_element_by_css_

Python Selenium Chrome - Message: unknown error: cannot parse internal JSON template: Line: 1, column: 1, Unexpected token

This code works on two PCs but throws an error on another one. webdriver_path: str = os.environ.get("WEBDRIVER_PATH") chrome_user_data_dir: str = os.environ.get

how do i press enter on a cr-button with selenium python

# import the webdriver from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys import time im

Facebook Group Post Scraping Using Selenium Only Returns One Post

I'm in the process of building a Facebook Group Scraper, I have managed to write the code to log-in + scrape the name of the, but for some reason, my code is on

How to use CSS selector with strings

I've been trying to create a program that finds data on a site using selenium. I've downloaded the webdriver and by module. driver.get("https://en.wikipedia.org