Category "selenium"

Emulating a clipboard copy/paste with Selinum + Capybara

I have a "Copy Link" button in my frontend UI. When clicked, the URL inside an input box is copied to the user's clipboard with this JS: const copyTextarea = d

Connect to undetected-chromedriver docker image

I have been using https://hub.docker.com/r/selenium/standalone-chrome on my Synology NAS to use Selenium Webdriver to perform automated requests. I don't rememb

Selenium Chrome Webdriver process Working Locally But Not On Heroku

So I have the following Selenium Chrome Webdriver process that is working correctly locally. Basically, when the below code is run, a purchase is made through

aws lambda: How to fix 'geckodriver' executable needs to be in PATH"

So I am trying to use firefox in aws lambda runtime Python3.6 I have added my dependencies using layers in this order: selenium3.14, geckodriver25 and firefox

find_element_by_* commands are deprecated in selenium

When starting the function def run(driver_path): driver = webdriver.Chrome(executable_path=driver_path) driver.get('https://tproger.ru/quiz/real

Python, pyautogui: how to explicitly for os to find required file/dir?

I am writing Selenium tests and faced an issue when I need to upload an image, but the input I want to interact with is hidden from view and doesn't have a 'val

Problem with devTools.send(Emulation.setDeviceMetricsOverride selenium 4

Selenium 4: I have an error on this line of code : devTools.send(Emulation.setDeviceMetricsOverride(600, 1000, 50, true, Optional.empty(), Optional.empty(),

Why does Selenium's wait.until_not(EC.invisibility_of_element_located) wait for too long for a loader to disappear?

Which selenium.webdriver.support.expected_conditions are better to use when waiting for the invisibility of an element? In my case, I input data into a form, cl

pyvirtualdisplay - downloads are stuck as .part file

I have a python-selenium script running on a debian 11 server without any Desktop - thats why i use pyvirtualdisplay. The script has to login to a website and t

Selenium python : my current_url doesnt update after click

Im scraping a website where I need to retrieve values from the url when i click on a button providing different form values. I have a problem: when i click the

selenium twitter login without new device notification

Is there a way to log in to twitter with selenium/python without getting the notification "login from a new device" on Twitter? Current code is import urllib.re

Message: Tried to run command without establishing a connection

New to this, apologies for the novice question. Trying to run a script using Python, Selenium and the unittest module. Have the typical setUp(), test_1, test_2

How to headless mode with --user-data-dir=chrome-data chrome option

I am using python selenium for implementing tests. I need to keep login process so I don't log in every time. I use add_argument("--user-data-dir=chrome-data")

"TestNG No tests found. Nothing was run" while executing automated tests using Selenium through TestNG

I want to know what exact software should I install before I run my automation project. Selenium web driver, selenium java, testNG, junit was installed but th

Stop webpage from auto-reload with selenium/chromedriver

Im using python with the selenium package and the chromedriver to scrape a webpage. The page is automatically reloading itself (probably via java-script) every

How to modify .condarc file or use pinning to force conda to install the noarch selenium version when running "conda update --all"?

I would like to install selenium v4.1.0 on Anaconda python on Windows. https://anaconda.org/conda-forge/selenium If you run conda install selenium, conda will i

How to open url with selenium webdriver python with differents IPs?

from selenium import webdriver options = webdriver.ChromeOptions() options.add_argument('--proxy-server=125.62.213.229:82') browser = webdriver.Chrome(executa

How to capture network (XHR)? (Selenium 4)

How to capture network (XHR)? You can track the desired packs (XHR) in the Chrome (Open DevTools (F12) → Open tab “Network” → Select filte

C# Selenium - Can't access image url in another tag

I'm trying to validate image on website however can't access the url of the image. Most websites will have the image with a "src" tag however this website has t

Resize Selenium browser window to emulate a phone screen

I want to be able to resize the Selenium browser window to emulate a phone screen that is small enough (340,695). Is there a way to do that? This is what I have