Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Browsing all 98257 articles
Browse latest View live

Selenium click method does not work as it should

Selenium clicks on a link and opens a new window. But at the same time it sometimes closes the initial window though I need it to be open. Looks like it does so when it fails to receive...

View Article


Selenium WebDriver How to Resolve Stale Element Reference Exception?

I have the following code in a Selenium 2 Web Driver test which works when I am debugging but most of the time fails when I run it in the build. I know it must be something to do with the way the page...

View Article


How to click on a button with selenium. (Java, Selenium)

I'm trying to use Selenium to click a button that loads more news on the page, but I always end up facing an org.openqa.selenium.ElementClickInterceptedException or...

View Article

undetected chrome driver- mismatch between chromedriver and chrome version

im running the following code using undetected_chromedriver:import undetected_chromedriver as ucdriver = uc.Chrome()im getting the following error:selenium.common.exceptions.SessionNotCreatedException:...

View Article

Crontab scheduler not able to run safari using selenium

I am trying to open safari browser using selenium, Also using crontab to schedule it.when I run my code manually through code or terminal it works fine, but when I schedule it using crontab, it failed...

View Article


Why crontab can't start the safari driver

Last night, I'm trying to use selenium with python to make a script fill the body temperature in the website which given by my collegeBut when I want to use crontab to automatically execute the script,...

View Article

Web Scraping with Selenium [duplicate]

I'm trying to to do a script in python that uses selenium to retrieve some information from this website. It seems that Cloudfare blocks the script because it is a bot. Here i post part of the...

View Article

Site blocking Captcha Solver extension

I have a crawler and I'm trying to use Captcha Solver's services that are used in Chrome Extensions (such as CapSolver), but the site I'm trying to scrape apparently detects those extensions in my...

View Article


SeleniumBase with xvfb and headless Chrome gets stuck on Ubuntu VM but works...

I'm working on a web scraping script using SeleniumBase on an Ubuntu virtual machine (VM), and I'm running into issues with headless mode and xvfb. This script works perfectly on my local Windows...

View Article


Excel used in testNG data provider is using old data even if new data is...

I am using dataprovider to read data from and excel as inputs to my selenium script. I am basically adding systems to my application. Earlier i had about 110 rows and 7 columns worth of data in the...

View Article

Automate the extraction of documents on from website

I am a beginner at python and am trying to extract documents from websites.I am trying to automate the extraction of a document ("fund factsheet") from websites. I want my program to (a) enter a...

View Article

How to pass a Selenium WebElement to Generic 'Action' Methods through...

I have created generic methods to perform common actions using Selenium such as 'click' and to find whether an element is present on a page or not. These methods are mapped to a Cucumber step and the...

View Article

Image may be NSFW.
Clik here to view.

NoClassDefFoundError: Failed resolution of: Ljava/net/http/HttpClient

I had:java projectinclude: appium framework (implementation appium library)setup appium methodappium server startedinclude: testNG, espresso, uiautomator2After write|run test case, it can not find...

View Article


Possible to set Request Headers in Selenium?

I'm trying to write a test against a site that authenticate's by checking some headers.In other frameworks it's possible to add headers to the driver but I can't see anything like that in Selenium.Is...

View Article

Cucumber Runner Class Not Picking Up Tags from Properties File

I am trying to execute my Cucumber runner class by accepting tags from a .properties file. However, it seems that Cucumber is not recognizing the tags, as it ends up running all my tests. Below are the...

View Article


Declaring a page object in the test class is throwing below error - Appium

I am getting an error when declaring a page object in the test class, as shown in the code below. When I declare the page object in the test method, it works perfectly, which I think is not...

View Article

How to install and use the latest version of selenium with Firefox on Ubuntu...

I want to automate the login process to the pfsense captive portal, to do this I use Ubuntu 22.04LTS arm64. To be able to connect to this portal I have to enter my username, and password, accept the...

View Article


selenium webdriver importing Options giving me an ImportError

Link to the original code I'm trying to implement into my code.Running Selenium WebDriver using Python with extensions (.crx files)from selenium import webdriverfrom selenium.webdriver.chrome.options...

View Article

Uncaught DOMException: Failed to execute '$' on 'CommandLineAPI': not a valid...

I am writing automation UI tests for my web page using selenium.I have an element on the web page which I am testing:<&lt input type="checkbox"...

View Article

How I need fix error desired capabilities

def new_task(logg): #===Создаетзаявкувдемо2===> driver = webdriver.Remote( command_executor=executor, desired_capabilities=capabilities)E TypeError: WebDriver.__init__() got an unexpected keyword...

View Article
Browsing all 98257 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>