Category "selenium"

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

How to find the number of elements having the same CSS selector in selenium java?

I am using the latest version of selenium with java. I am trying to find the number of elements in a certain web page having the same css selector, but I don't

How to open up Microsoft Edge using Selenium and Python

I've already added the msedge driver into the path variable. cmd confirmed that MSEdgeDriver was started successfully, however, when I run import os from selen

Why Selenium webdriver with Python can't reach to a website

I am trying to use selenium with chrome driver to connect to a website. But it couldn't be reached. Here is my code: from selenium import webdriver fro

Error while using Firefox headless, Selenium and Python

I am trying to use firefox headless, Selenium framework and Python to fetch webpage on Amazon EC2 Ubuntu linux. My code looks like this: from selenium import we

Chrome driver didn't show characters correctly

I'm trying to take screenshot using selenium webdriver, but webdriver can't show traditional-chinese correctly. the result is like this. here's my code from se