Category "selenium"

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

Import "selenium" could not be resolved Pylance (reportMissingImports)

I am editing a file in VS code. VS code gives the following error: Import "selenium" could not be resolved Pylance (reportMissingImports). This is the code from

How to extract the text iterating specific rows within a table using XPath with Selenium and Java

I want to iterate through this table and need to get a text from each row like text inside td= health1, health 2 and health 3, similarly, I need text inside the

python-selenium.common.exceptions.WebDriverException: Message: Unknown error

I'm up with python 3.8 and selenium but recently I downloaded the latest edge web driver zip file and runned the mswdedriver.exe from that and typed this code i

Debugging issue in testng test cases

I am using intelliJ v2021.3.2 (Community Edition) My project is a java Maven TestNG (v7.4.0) project When I run test cases it executes successfully, but when I

Allure is not generating report on cucumber 7

After updating the cucumber version to 7.2.3, Allure not generating reports. (unknown report and NaN%). It still uses the config file in the directory. I think