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
1answer
1k views

Methods to setup parallel test execution in NUnit with Selenium WebDriver C#

For true parallel execution of Selenium tests in NUnit, does the setup of the webdriver object need to be within the test method itself? Or is there a better way? Previously, for parallel execution ...
0
votes
0answers
16 views

Download file in automation at a specific location

I am automating a webapp using selenium with java and involves downloading of pdf in a specific path. Recently chromedriver.exe stoped opening hence I replaced it with a newer version. But now I see ...
-2
votes
0answers
21 views

My for loop is not going to the else part of the if statement

There are 2 list boxes. While running the script, it goes to the first list box and enters the values, but it does not go to the second list box. The values for the second list box are added to the ...
2
votes
3answers
7k views

testng.xml is not executing when we run pom.xml for maven project selenium

While executing my pom.xml file through maven test my BUILD is getting SUCCESSFUL but my testng.xml is not executing. I tried with executing 13 classes and with single class for both the time it ...
0
votes
2answers
22 views

I want to scroll to a specific location Selenium Java

I have a list of webelements, I have written the below code: List <WebElement> feature_tiles = driver.findElements(By.xpath("//div[contains(@class,'featuretile')]//a")); System....
0
votes
0answers
16 views

How can I handle browser alert

I do not understand how to click allow button. import time from selenium import webdriver chrome_options = webdriver.ChromeOptions() chrome_options.add_argument("--disable-notifications") ...
0
votes
0answers
22 views

How can I use a for loop in this code in python

I want to run my code 10 times in 10 new tabs. Kindly help me on how can I use a for loop and open in 10 different tabs. code; import time from selenium import webdriver from selenium.webdriver....
0
votes
1answer
25 views

Unit vs Component vs System Testing [duplicate]

Can somebody explain the difference between unit, component, and system testing with a real example. What I understand is unit testing is about testing individual functions with mock services if the ...
21
votes
15answers
4k views

Is it important to know manual testing before learning test automation?

Is it important to know manual testing before starting to learn how to do test automation? Test automation is a part of testing activity, so obviously you need to be aware of testing concepts and ...
2
votes
2answers
24 views

End to end application tests when separate repo for the front-end and back-end tests

We have separate repos for the backend and the front end. The backend which is just microservices has its unit tests(jest), microservice integration tests(jest), and microservice end-to-end tests(jest)...
1
vote
6answers
6k views

Why driver.get() method is not recognized?

I have setup selenium in Intellij Idea. But when tried to create a simple instance it doesn't recognize "get" method. This is what I have done up to now. System.setProperty("webdriver.chrome....
0
votes
0answers
9 views

Windows switching issue through Winium

I am automating an application where I have to click elements on next window after login . Below is the issue that I am observing, which is making my scripts failed. Login is a small splash screen , ...
1
vote
1answer
7k views

How to fix No internet/Internet not working for android emulator on windows 10?

Issue I am facing : I have created new AVD from Android Studio (AVD Manager) but the emulator does not have internet. I tried opening www.google.com still "No Internet Connection" displayed. If ...
1
vote
1answer
60 views

Playwright: Executing different test suites depending on script parameter

I have switched to Playwright recently and I would like to ask you for some feedback on my current issue which I am facing at the moment. I have a simple framework set up for one of our company ...
1
vote
2answers
105 views

Playwright: Storing an element selector in variable

This might be a trivial question/answer, however I would like to know if there is a way that I could store an element locator in a variable and then reuse it same as it while working with Selenium and ...
1
vote
1answer
57 views

Playwright: Printing Console Logs each time when one of the test fails

I am working with Playwright, Mocha and Chai for my automation project and I was wondering if there is a way for capturing all console logs that appear during a failed automation test execution. ...
0
votes
1answer
154 views

Run Selenium test case in time interval from a console application C#

How do I create a console app - a batch file which will hit my Automation testing application and runs selected test cases? I have test cases with code coverage and it runs from Visual Studio. Now on ...
9
votes
8answers
1k views

Is manual regression testing an technical debt for agile teams aiming for continuous delivery?

Background: Following are not my assumptions or expectations but in my last couple of interactions with different project teams, I am seeing these patterns where it is expected (from testing by the ...
0
votes
2answers
26 views

Seeing NullPointerException on running TestNG Selenium Framework

Written the Test Script in TestNG framework where the Open browser activity is happening in "baseClass" under @BeforeTest annotation and the Test Script is written in Test Packages under as @...
0
votes
4answers
4k views

How to Incorporate the Defunct PageFactory in Selenium with C#?

I just discovered the page object design pattern recently and really wanted to implement it into my company's UI Test Automation suite. I started to do so and immediately ran into problems which lead ...
-1
votes
1answer
273 views

Do we have any free inspect tool for java swing application?

I have one java swing application. I need to automate that application. At first I need to inspect the element from that application. Do we have any free inspect tool for java swing application?
1
vote
2answers
56 views

Playwright: Creating and interacting with a list of elements on the page

This might be a simple question, however I would like to know if there is a simple way of declaring a list of elements which later on you will be working on for example looping through it and looking ...
0
votes
3answers
36 views

How to pass text dynamically in xpath under Properties file

I am stuck in a situation where I want to write Xpath dynamically in the properties file. The actual XPath is like in property File div[contains(text(),'<state Name>')]. State Name changes ...
3
votes
2answers
2k views

How to drag an element and drop it in another frame?

Hope you doing well, I'm trying to dragAndDrop an element from FrameOne to FrameTwo but not able to do so.Please help me to understand the concept and what I'm doing wrong here and need to achieve ...
7
votes
7answers
8k views

what is difference between Test Cases and Test Scripts?

I know that test cases are written in human readable language, whereas test scripts are written in code and mostly done for automated testing. But can anyone tell me what else make them different ...
0
votes
0answers
31 views

How to perform mouse hover in selenium java using page object model approach?

I have automated some test cases mentioned at https://www.techlistic.com/2019/08/automate-buy-product-using-selenium.html For second test case mentioned at given link, I have written code for mouse ...
3
votes
1answer
796 views

How to set browser window size using Phantom JS + Java

I am working on PhantomJS with Java for one of my project. I am looking for some help in working with PhantomJS in following scenario. Scenario: Step-1: Mouse hover on tab/link then 2 sub-links will ...
1
vote
1answer
115 views

Number of actors in E2E tests

We have roughly 30 Cucumber tests and a few actors that run these tests that have been created based on our service's personas. Exemplifying this: We have a C2C ecommerce platform and an user. Users ...
0
votes
1answer
30 views

In the screen how to navigate to the row which contains the text that needs to be Edited and then click on Edit button.Can some one pls guide.NeedHelp

In the screen how to navigate to the row which contains the text that needs to be Edited and then click on Edit button. Scenario: I have a screen where I need to find the row which has the value as &...
4
votes
1answer
1k views

How to use multiple wait conditions in Selenium Webdriver using ruby?

I wanted to know, how I can use following waits in program at which situations? driver.manage.timeouts.implicit_wait = 20 driver.manage.timeouts.script_timeout = 20 driver.manage.timeouts.page_load = ...
1
vote
3answers
3k views

How to automate KendoUI dropdown with selenium webdriver and C#

Cannot make it work, need help, I don't know how to automate KendoUI drop-down with Selenium using C#. Sendkeys doesn't work for KendoUI. Here is my HTML: <div style="background-color: #e6e6e6;...
0
votes
4answers
931 views

Selenium Java WebDriver Can not Find Element with xpath

I've a question, how can I capture the xpath in the case below? I tried this: driver.findElement(By.xpath("//*[@id='L2_auto_8']/div/a[1]")); and I tried: driver.findElement(By.xpath(//a[@href='/...
0
votes
4answers
3k views

Zephyr vs Test Rail vs QTest

My workplace needs to move away from manual excel spreadsheets. The solution we choose must meet these conditions: support automated tests suitable for small testing team cost effective can integrate ...
0
votes
2answers
163 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
3answers
825 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(...
-1
votes
1answer
16 views

Automating Ruby on rails testing [closed]

I'm the only software engineer in a 40 person organization, and we work with various contractors to write our RoR site. (I'm mostly a python programmer, so have limited experience in this space) We ...
1
vote
2answers
851 views

Click getting to lower item (under dropdown) instead of dropdown in Selenium

I m trying to click on the dropdown menu item and i am able to select the dropdown and the menu item but instead of clicking on item the click is going to the element right under it. Before the ...
1
vote
2answers
12k views

Selenium Driver Service Not Found Exception

Good Afternoon All, I am creating a testing framework for a web app utilizing Selenium Web Driver and Visual Studio by way of C#. I have created a solution that includes two projects. The first ...
1
vote
1answer
26 views

AllureRestAssured , how to ignore logging headers

I am using rest-assured and allureRestAssured for testing api given().header("Content-Type", "application/json") .header("key", key()).filter(new ...
0
votes
0answers
30 views

Appium-Could not find ''apksigner.jar''

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown ...
0
votes
2answers
54 views

Selenium driver for web app testing on chrome in incognito windows

So I am trying to use a selenium web driver extension on chrome to record a web application test on a chrome browser that is in an incognito mode. How do you run a test on a web application in an ...
0
votes
0answers
13 views

Not able to blacklist header value [duplicate]

Hi I using java and testng for my test suite and allure report for reporting , issue is I am not able to figure out how to implement condition where Blacklist specific header value Logged response ...
11
votes
5answers
51k views

Webdriver Firefox “Element could not be scrolled into view”

I am facing this problem on Firefox v.59, Selenium 3.11.0. I just click on an element, like this: webDriver.findElement(By.id("row_0")).click(); and I get exception: org.openqa.selenium....
0
votes
0answers
19 views

Allure Report is not getting generated using jenkin pipeline

I am using Jenkin Pipeline to execute by test , every thing work fine bit allure-result and allure report is not getting generated , tried all blogs still not able to get in Here is console log for ...
1
vote
1answer
20 views

Is it valid to use the tool that comes with a library to verify that your C/C++ code is working as expected?

I have a library which Loads audio files Does filtering on the PCM data Saves the new PCM back to files it does that using: Using its own implementation of load/save (raw files and uncompressed ...
0
votes
0answers
8 views

how to resolve the OLE error 80110802 in HP ALM?

I have recently started testing and I encountered this problem while performing testing on an application. I use UFT and HP ALM.
0
votes
2answers
522 views

How to maximize browser window irrespective of windows versions

I have some scripts which are running on Firefox browser. Here the problem was I am using driver.manage().window().maximize(); code to maximize the browser. It is perfectly working fine with Windows 7 ...
6
votes
2answers
2k views

How to ignore a test in C# when CurrentEnv is Prod

I have created a ProdIgnoreAttribute which extends from IgnoreAttribute. And I have assigned this attribute to certain tests which I want to run in DEV/QA but not in PROD. ApplyToTest(Test test) ...
3
votes
5answers
26k views

Why this “WebDriver driver = new ChromeDriver();” Not this “ChromeDriver driver= new ChromeDriver();”

Why we always do: WebDriver driver = new ChromeDriver(); Not this: ChromeDriver driver= new ChromeDriver(); Any special reason, except object size ?
1
vote
2answers
74 views

Should a newbie in Test Automation learn the core underlying framework?

I am a complete beginner in Test Automation. I am trying to learn Selenium Webdriver with Java, TestNG, Cucumber(BDD) framework, Build tools like Maven. Now, the problem is that there is an existing ...

1
2 3 4 5
68