Category "selenium"

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

How to exclude last line from scraped content in python selenium

content = driver.find_elements(By.XPATH,'//div[@id="content"]/p') Now there is a list of paragraphs that were scraped, like- content[0],content[1].....content[

How does appium and selenium grid function together

So I have tested an appium script and it's running fine but I want to run it with selenium grid so I can run this on a different machine but I am not clear on i

Getting TimeoutException: Message: timeout: Timed out receiving message from renderer: 300.000 only when using Jenkins for Switch Window on Chrome

I'm using different web urls in tabs in one browser, in order to get the required value from one website and add it to the other. I use a robot framework for th

Scraping video url from multiple pages of a website

I am doing scraping using selenium. i want to scrape all the video urls that are present in the 626 products on the 25 pages. but while extracting the url it gi