New answers tagged

0 votes

how to select input ID using span, I'm facing bug in selecting ID dropdown

I am not a python guru, but the answer to your problem lies in your error message: AttributeError: 'WebDriver' object has no attribute 'find_element_by_class_name' A quick search revealed that you ...
  • 30.8k
0 votes

How to move the slider at specific position in Selenium

I found that calculating the offset by pixels was off due to rounding from float to int, so the solution I found was to first move the slider to the beginning and then move the arrow key in a loop. ...
0 votes

How can I copy authorization code from Yopmail

import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class App { public static void main(String[] args) throws Exception { ...
1 vote
Accepted

How to automate SMS receiving testing with Appium?

Get APKINFO app and from the activity open the SMS app on activity call, after that simply select the newly received message.
  • 26
0 votes

Selenium - sendKeys() function is not working for file upload

In Software qa services we can do by multiple ways. By selenium in above code we need to update the line to : driver.findElement(By.xpath("//*[@id='fileupload']")).sendKeys("...
  • 1,139
0 votes

Selenium Test Suite fails to execute in Jenkins but works correctly on local machine

I also need your help I'm getting no element found ,no frame found exception Expected: an element that is visible but: no matching element found by not so.. If I'm uncommit that changes then I'm ...
0 votes

How to create an HTML test report in Selenium automation framework?

Like most things, there are multiple solutions. Like the other answers have mentioned, you can create your own report solution. You can use an existing reporting library. Extent Reports and Allure ...
  • 1,583
0 votes

How to create an HTML test report in Selenium automation framework?

Multiple ways to achieve this. I am sharing one of the simpler way I have used in my project : package CucumberReport; import org.junit.runner.RunWith; import cucumber.junit.Cucumber; @RunWith(...
2 votes

How to create an HTML test report in Selenium automation framework?

You can create a custom HTML file using the FileWriter class of Java. You can add everything you want in the report into an array with each step execution. At the end of the test, you can write all ...
0 votes

Should most of the Regression testing items be automated?

Two Thumb Rules Rule No 1 - If you can automate, you should automate. Rule No 2 - If you can't automate, learn it and follow Rule No 1. See, before automation or even for testing anything manually, in ...
  • 76
1 vote

Should most of the Regression testing items be automated?

I can NOT answer in one word for this. Many other factors have to be considered to conclude anything : How many tests from regression suite are repetitive? What is the time horizon for this project? ...
0 votes

getText() method is returning all small letters in selenium instead of actual case

There are multiple workarounds to handle such scenarios while doing web automation using Selenium. While working in software functional testing and frameworks in multiple languages below are the 02 ...
  • 695
0 votes
Accepted

How to get the correct XPath for a column title using C# and selenium webdriver?

Try: driver.FindElement(By.XPath("//*[contains(@title, 'Reference Id')]"; Tip: In the development tools of Chrome-based or Firefox-based browsers, you can actually type an XPath or CSS ...
0 votes
Accepted

Convert Python or C# selenium test file to .side file?

Upon further research, there is no easy way to covert from object oriented written Selenium tests to .side files. One could write a parser that converted just Selenium functions to .side xml code, but ...
  • 1
0 votes

Solution for the parallel execution of tests that verify email

Some email providers let you use "+" on the email address, e. g. "johndoe+abc123@example.com" that you can use to differentiate the different sources. Is the information on the ...
0 votes

Multiple browser support

As an automation tool, Selenium already provides the required multiple browser support on the browser automation side. You now need to refactor your current automation framework to make sure different ...
7 votes
Accepted

Selenium + Java: How to get the OS, and Browser details on run time?

Yes is possible using Selenium with the "Capabilities" class. Here is sample code you can use to get the details you need: Capabilities caps = ((RemoteWebDriver) driver).getCapabilities(); ...
0 votes

Is the Page Object Pattern the ideal approach for browser automation for a website with a frontend that has nested frames?

It's 2022 and I've largely retired Page Objects now from my test automation development. The original idea: isolate identification of elements and provide a common place for them to be defined. The ...

Top 50 recent answers are included