I am trying to right click on the Forgotten account? link on the Facebook login page using Selenium but it is not working. I am trying to send.Keys() after contextClick() but the key press is …
Tag: selenium-webdriver
How do I stop selenium automation if 20% or 1st 20 test cases test methods are failed?
I have 100 test cases, if 20% or first 20 test cases all fail how can I stop the execution ? Already have testng ITestResult where should I break the build? Where can I break this suite if Result, “FAIL is over 20 ? DO i require to create new class or can I add in same below? Answer You
Selenium Edge WebDriver (Chromium) – session not created: No matching capabilities found
I’m trying to run a Selenium test with Java and Edge driver (based on Chromium). The version of my Edge Dev installed on Windows 10 is 83.0.478.37 (Official build dev 64-bit): Selenium Version : 3.141.59 I’m using webdrivermanager setup for this and used the example provided here. I tried many options it includes without using webdriver manager but still gives
Is it a bug in Selenium documentation?
Here is the snippet from the new Selenium doc on Waits: When I paste this code, it gives me an error on the Duration: The constructor WebDriverWait(WebDriver, Duration) is undefined It still works with the following syntax: Is it the documentation bug? Answer As I wrote in the original question, the code above still works. I guess, as @Fenio assumed,
how to click the multiple checkboxes in selenium webdriver?
As i want to click the multiple checkboxes in selenium webdriver, so that im using the ‘id’ webelement to click but what problem i’m facing means all the checkboxes id’s are same in my HTML so is there anyway to click multiple checkboxes? Here im posting my HTML code: first check box: second checkbox: third checkbox: Answer How to click
How to find element with “== $0” after end tag in html using Xpath, css or any other locators in Selenium
I have to find element with “== $0” after end tag of “span”. Below is the HTML Code of element. Although while I have copied the html code it is removing “== $0” itself. so I am attaching image also. I have tried to find out solution but it was not working. I have tried xpath that normally works like
the method withtimeout(duration) in the type fluentwait is not applicable for the arguments (int, timeunit)
An error appear while working with this code the error is “The method withTimeout(Duration) in the type FluentWait is not applicable for the arguments (int, TimeUnit)” Answer This is the correct usage now..
iText library in Java vs Puppeteer in Node For Pdf Generation from HTML
I want to generate pdf out of html page and create service for the same in either Node.js or Java. Which one is better feature and performance wise, iText or Puppeteer? Also do selenium provides pdf generation feature same as Puppeteer in Node? Answer It depends on how you define “features” and “performance”. I’m not sure which converter is faster,
React.js How to define a custom id, rather than showing react-select-1–value in html
How do I change the React.js application to stop randomly allocating inputIds, so that Selenium will work consistently? I’m working with Selenium and a React.js application. The application is constantly under development. I have a Selenium method working to randomly select the react dropdowns using a single, reusable method, but the ids of the react dropdowns keep changing for some
isEnabled() method always returns true
I want to get the list of Strings for which the check boxes are enabled. But when i use isEnabled(), it always return true even for the disabled check boxes. And in output i get the list of all Strings present in that field. Below is the code which i have written for it:- HTML code is as below:- For