Questions tagged [automated-testing]

Use for questions involving problems with automated tests. Relevant for designing test automation, debugging test automation, automation tooling questions, and questions about when it is appropriate to automate. Questions regarding specific tools should tag those tools as well.

Filter by
Sorted by
Tagged with
0
votes
2answers
174 views

How to perform click on an element using selenium for which I am getting staleState Exception

Problem: There are couple of radio buttons with the same ID and I need to perform click on these. The first radio button gets the click where the second one is getting StaleElementReferenceException. ...
0
votes
1answer
309 views

Selenium is not performing Click Action on the Radio Button

Issue: I am trying to perform a click on a radio Button but it is not working it just bypass the step and perform the next step doesn't even give me any error message *Intention is to click on refund ...
0
votes
1answer
64 views

Need help with XML Testing. 2

In our project, related to Big Data. On daily basis we receive 20 to 30 xml files and using hive/pig scripts the XML are loaded to database. The files are placed outside Hadoop environment. ...
0
votes
2answers
118 views

Unable to enter in dynamic textfield

Trying to enter pin number in dynamic textfield. Pin number option get change each time once website loaded. <input type="password" maxlength="1" class="input-pin input-validation-error" ...
0
votes
3answers
203 views

Sharing static class variables data between two Selenium classes c#

I have two Selenium C# test case classes, ClassA and ClassB. I would like to reuse a static variable VarA, defined in another static non-test ClassC. After ClassA has made a change to the variable, I ...
0
votes
1answer
56 views

I need to verify a dynamic table record, if they match with data then PASS else Fail the test case using Assert

Page Object Class public class Transactions { WebDriver driver; boolean result1; public Transactions(WebDriver driver) { //super(); this.driver = driver; } public void ...
0
votes
1answer
34 views

calculate the total of liabilities and check it is matching with the given value

I want to calculate the total liabilities amount from webtable and need to compare with the total amount which is present on webpage. I got the following error : Illegal/unsupported escape sequence ...
0
votes
2answers
90 views

How to write the XPath for this

I am trying to write the XPath for the below element but unable to do. I want to write for the Individual. I wrote like this //h3[contains(text(),'Individual')] <h3 class="dashboradh"> ...
0
votes
1answer
65 views

How to enter text into a text field nested in an iFrame?

I am using Ruby with Cucumber and attempting to build up a suite of automated tests against a dynamics 2013 system. We have a cart that is a nested into an iFrame and we are attempting to enter a ...
0
votes
1answer
35 views

How should I construct a standard text to test or benchmark a system for automated proofreading?

If I would start out to compare performance of solutions like: Microsoft word LibreOffice Grammarly Where do I start beyond thinking up own test texts? To start with, I have found for example this ...
0
votes
1answer
201 views

Selenium, data driven testing using NUnit and SQL queries.

I am developing a Selenium Test Automation Framework for the purpose of testing multiple websites. I have currently set up the Framework in Visual Studio using C# and implementing the Page Object ...
0
votes
0answers
29 views

Measuring flakiness of TestRail pipelines and tests

A pipeline in TestRail is flaky if its status has changed from green to red frequently across last X builds. Similarly, a test in TestRail is flaky if its status has changed from green to read ...
0
votes
2answers
87 views

Setting up an API Test Framework

I'm testing an API and I'm looking to define my payload using classes so that my program can then deserialize/serialize into any format(namely XML in my case). Below is an example of the payload <...
0
votes
2answers
67 views

Need Some Help in implementing a logic for automating a web element using Selenium

Here is the html I am working on, the concept is to loop through the table and fetch all the td values. And based on the first td value, fetch the second td with tag strong inside the td tag e.g: I ...
0
votes
1answer
52 views

How to keep a single browser window open during multiple search for a website in the code?

I want to search for different items in a website multiple times and add the item to cart after each search and proceed to checkout after last search. Cucumber opens the new browser for every row in ...
0
votes
0answers
38 views

Jenkins Server url-Unable to perform Google oauth authentication

I am running selenium scripts from Jenkins server configured at [http://****.****.com:8080/]. The script reads data from google spreadsheet and execute the testcases. For which I used google oauth for ...
0
votes
1answer
298 views

Clicking flipping image in selenium webdriver using C#

New to this platform I'm a beginner learning selenium webdriver with c# but I have a problem clicking on a flipping image, I identify the id but it won't click on it. I was told to use wait which ...
0
votes
1answer
76 views

Sharepoint Automation

I am trying to automate SharePoint test cases. I am finding an issue while finding an element locator for actual result, updated by, update date. Does anyone know how to find the locators? HTML: <...
0
votes
1answer
146 views

How to check webservice response in database using Selenium or UFT

I have an application. Different web services gets called when any action is performed. Let me explaian my scenario: When i update a value in applciation it's also get updated in LPS system. The LPS ...
0
votes
1answer
169 views

Running test suite from both terminal using pytest and unittest runner but show only unittest runner results and execute once

i am trying to execute my following test suite: import unittest from Login_Page import LoginPageAndLogout def test_suite(): # get all tests from classes login_test = unittest.TestLoader()....
0
votes
1answer
88 views

How can I solve OutOfRangeException on using Selenium C#

I was faced with the below problem while trying to run a data driving testing and have tried to resolve it but nothing seem to be working for me. Please could you take a look at my code and tell me ...
0
votes
1answer
60 views

Is there a reason my automation tests always fail at night at a certain time on Jenkins while in the daytime it is more likely to pass?

Is there a reason my automation tests always fail at night at a certain time on Jenkins while in the daytime it is more likely to pass? Is it someone accidentally cleaning the area and tapped on my ...
0
votes
3answers
623 views

Unable to switch into third window - Selenium

I'm using below code to switch into windows : Set<String> handle=driver.getWindowHandles(); System.out.println(handle); Iterator<String> it=handle.iterator(); String ...
0
votes
0answers
167 views

Not able to scroll to specific element in Msite - Chrome browser - Appium

I have implemented scroll in mobile device with appium. Whenever I am scrolling to some element it is not scrolling properly. Tried with fixed scroll points as well. Here problem is I have small , ...
0
votes
1answer
4k views

ElementNotVisibleException: Message: element not visible Selenium in Python

I'm trying to click an options from a website dropdown menu but I am not able to click. I am using "xpath" locators for the element and I upgraded my chrome to the latest version for chromedriver. ...
0
votes
1answer
406 views

Failed To Launch IE Driver Using Selenium WebDriver?

I am trying to execute the selenium web driver script in IE browser but I got this error? can any one provide the solution. Code : import org.openqa.selenium.WebDriver; import org.openqa.selenium.ie....
0
votes
1answer
244 views

Selenium 2.53.1 now working with latest Firefox versions?

My organization is stuck on Selenium 2.53.1, and we test using compatible Firefox 46.0.1. I recently accidentally ran a test with Windows 10, Selenium 2.53.1 and Firefox 61.0.2, and the test ran fine....
0
votes
1answer
210 views

TestNG + Appium + Java : [TestNGClassFinder] Warning: Can't link and determine methods of class

Question: How to fix : [TestNGClassFinder] Warning: Can't link and determine methods. More info: My Automation is getting failed suddenly. I know it was working well before & even yesterday. ...
0
votes
1answer
95 views

Unable to get text of an element

I have selenium Test case to validate contents of 2 web pages. The issue, I am facing is I'm not able to get anything from element.getText(). I'm using below code. driver1.get("https://some url"); ...
0
votes
1answer
502 views

Selenium with C# “Element is no longer valid” exception being thrown when repeating steps

I am repeatedly getting a very annoying problem when automating my test cases using Selenium/C# in Visual Studio. This test is designed around validating search criteria text. In order for me to test ...
0
votes
1answer
196 views

Dynamic Tests using TestNG selnium arrays

What is the best approach of the follwoing scenario. I have to run a number of tests which take in dynamic data. The first set of values are pretty standard but then one is dynamic and can be any ...
0
votes
1answer
688 views

How to get the Indexes of all columns In a Single Row using Selenium WebDriver and C#?

For single web element in that row i got index..for multiple column in a single row how to get the index: IWebElement colelement = driver.FindElement(By.XPath("//div[@id='grdBooking']//table//tr/ th[...
0
votes
1answer
1k views

how to drag and drop two elements in the same table ( selenium java)

Both functions works great on its own. But when I put them together. After I drag and drop the first element, I can't drag and drop the same element in the empty table. import java.util....
0
votes
3answers
794 views

Selenium IDE type not saving text

I am trying to create an automation tool to test a salesforce platform. When I try to create a new form, the text is displayed but it's really just an injection from Javascript. Is there any way to ...
0
votes
1answer
63 views

Can I keep the Groovy power assert and still have a custom message printed?

I use Katalon Studio for my test automation. It comes with an in-built script editor (Groovy). So, I can use Groovy's power assert that gives me a nice and detailed output message when the assert ...
0
votes
1answer
82 views

How to do one single script can automate the entire matches in the mlb site

I’m testing baseball reporter software.And its windows based application. I'm using winium tool with java lanuguge for automate the app. It’s a kind of reporter software, while a match going on, the ...
0
votes
1answer
2k views

How to open the app using appium?

I am new to appium, i configured appium with selenium it is working fine I am able to open the browser in my device and able to edit and do all the commands. But unable to open specified app, i gave ...
0
votes
2answers
1k views

Is it possible to call one custom keyword function from another Custom keywords from katalon Automation Tool?

I am trying to call method from one custom keywords to another Custom keywords functions But I am getting below error, 05-30-2018 02:59:02 PM - [START] - Start action : ...
0
votes
0answers
41 views

How to start with service virtualization ?

I have to create one POC on service virtualization. Can someone have idea about best site/blog where i can start and some open source tool which help me create a demo?
0
votes
1answer
120 views

How to scroll to the particular unique URL using selenium?

public class Test1 { public static void main(String[] args) { // Storing Url in the String variable String url = "Target URL "; // Launch driver.get(url); /...
0
votes
4answers
6k views

selenium.NoSuchElementException: Unable to locate element: #passwordNext

Error: Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element: #passwordNext For documentation on this error, please visit: http://seleniumhq.org/exceptions/...
0
votes
2answers
3k views

How do I implement Extent Reports in my rest assured api testing framework?

I have recently started rest assured to automate apis. My current framework folder structure has an ApiTestCases class in a folder under src/test/java I have a testNG suite xml to run the tests. How ...
0
votes
2answers
372 views

How to retrieve dynamically all Web elements information from UI Screen using selenium?

Need to retrieve all elements information present in the UI screen. For more clarification i have attached the generic screen From above image i need to retrieve label-name ...
0
votes
1answer
49 views

PhoneGap Android App Automation with Appium

I am using JUnit to make automation test , the context is changed to hybrid App , after tests I`m making output excel file with the result. I am new to the automation and found a way if something is ...
0
votes
1answer
126 views

How to retrieve all elements text value present in the screen using selenium?

List<String> allLinks = driver.findElements(By.tagName("span")); System.out.println("Links count is: "+allLinks.size()); for(WebElement link : allLinks) System.out.println(link.getText()); ...
0
votes
1answer
156 views

Selenium Web Page Navigation Bloating Test Case

I am fairly new to automation and am trying to form the basic structure for my company moving forward. I have done some research and am trying to implement POM but am a bit confused over structure and ...
0
votes
1answer
770 views

How to setup Jmeter as server and send messages to Client over TCP

Am trying to setup Jmeter as server and send messages from Jmeter to a client TCP connection. But unfortunately, Options in TCP Sampler of Jmeter make it a client.
0
votes
1answer
160 views

Selenium pytest vs nunit

I'from background of automated testing with tools like Testcomplete, QTP, JMeter and soupUI. Recently there was a need automation of web-application for institute I work. I started with Selenium-...
0
votes
3answers
359 views

Getting error : NoSuchElementException - Unable to locate element with ID attribute

I am running this code: from selenium import webdriver from `selenium.webdriver.firefox.options` import Options Setup: options = Options() options.add_argument("--headless") def get_results(...
0
votes
2answers
8k views

Clicking a cell in a dynamic data table C# WebDriver

The HTML I'm trying working with is below, <div id="enquiry-header-grid-SalesTransactionEnquiry-enquiry-header-grid-wrapper" class="enquiry-kendo-grid-wrapper k-grid k-widget" data-role="grid" ...