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

Button not clickable consistently in Selenium Java

I am trying to click a button in selenium java code and it is not clicking all the time. Apparently this is pretty common issue.I tried below few solutions:HTML Code :<button class="btn btn--action...

View Article


How to use Functions/Methods that require 'driver' parameter in Page Factory...

In my framework i have baseTest class and BasePageObject class Every Page extends BasePO Thing is : a lot of my methods on Pages need to use driver instance. I have method getDriver() and i use it 'n'...

View Article


Selenium work around 'TimeoutException' is not defined?

I want to work around the TimeOutException in Python Selenium.This happens:1.) Open Browser, Call URL 2.) Trying to find Element 2.1) Works sometimes 2.2) Works not sometimes and throws...

View Article

Does Selenium need display monitor

I am using Selenium to open a web site, login and copy some information from one web site. However it is happening on my work station and have a display monitor.my IT team wants to move this process to...

View Article

Click event not working in Safaridriver on Catalina OS where the same working...

Click action is not performed in the Safaridriver on OS Catalina Safari v13.02Tried working with javascript which is working fine , but that's the work around and it doesn't go with my existing...

View Article


Selenium's finding methods by class and tag show no elements present

I'm trying to extrapolate the preferences from my Netflix account with Selenium. Using the find_elements_by_class_name I managed to login, choose profile, open the account page and change the list from...

View Article

How to send the the values to dropdown lists whose input type is text instead...

I was trying to automate the ticket creation automation for the verizon site https://myverizonenterprise.verizon.com/vec/public/quicktasks/repairs/index.html#/repairsqf/tickets/createIn this site I...

View Article

Selenium Webdriver Code Snippet for broken Links

I was trying to use the following code snippet to verify if all the links are working or notlinks = driver.find_elements_by_css_selector("a") for link in links: if...

View Article


Image may be NSFW.
Clik here to view.

Why does driver.find_element_by_xpath("//div[@class='_2ycp _5xhk']") function...

I am developing a scraper for someone living in USA from Pakistan, it captures facebook event data (title, time, data, days and details) using selenium chromedriver. I used...

View Article


How to download an image using Selenium (any version)?

I was wondering, how can one use selenium/webdriver to download an image for a page. Assuming that the user session is required to download the image hence having pure URL is not helpful. Any sample...

View Article

Get Elements Between 2 Elements With Soup

I have the following HTML code : <div class="info"> <div class="left-wrap"><span class="date">DATE-1</span></div> </div> <div class="clients-list"> <div>...

View Article

How to confirm results from “find_element_by” search using Python and Selenium?

I'm trying to automate login to https://auth.tesla.com/login but getting stuck trying to enter my email address. I've tried these Python code lines: email_box =...

View Article

OpenQA.Selenium.WebDriverException: 'Cannot click on element'

I have this line of code.driver.FindElement(By.Id("BCA-button")).Click(); This was working fine at 'home'.I am using these libraries in C# Unit Test project.using OpenQA.Selenium; using...

View Article


Create a code to assign key words to a company/startup in Python

I have created a dataframe with a list of company and I have assigned to each company several keywords (from now on: tags). The dataframe looks like the...

View Article

How to get the .pdf download at the end of a redirect chain with Selenium?

I have tried every method I can think of for getting the pdf from the link:...

View Article


Get multiple elements with soup

I have the following HTML code, I'm trying to get "clients" for each specific "date", but I only get the first next element :<div class="info"> <div class="left-wrap"><span...

View Article

How can I override testcases in same report using extend report

How can I override test cases for multiple executions in the same report?. Like if I run failed test cases multiple time then it should override the same file without losing other records.In my case,...

View Article


Why do I see a message that my question does not meet quality standards?

2) Using Junit and WebDriver script, open https://www.cii.in/OnlineRegistration.aspx in Firefox and do the below 1. Select “Number of Attendees” as 3 select -- #drpAttendee-- css OPTION VALUE =3 Assert...

View Article

Can we use scenario outline for background steps

I am using POM with cucumber.I have 3 scenarios to execute where half of the steps are common for all the scenarios.So i am using background keyword for common steps.But I need to pass data through...

View Article

How to run Python script batch file with installed modules

I am trying to set up a batch file for a python script to run at a certain time every day. I set it up as...

View Article
Browsing all 97756 articles
Browse latest View live


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