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 ArticleHow 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 ArticleSelenium 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 ArticleDoes 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 ArticleClick 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 ArticleSelenium'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 ArticleHow 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 ArticleSelenium 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 ArticleWhy 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 ArticleHow 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 ArticleGet 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 ArticleHow 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 ArticleOpenQA.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 ArticleCreate 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 ArticleHow 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 ArticleGet 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 ArticleHow 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 ArticleWhy 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 ArticleCan 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 ArticleHow 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