Questions tagged [ui-automation]

Automated UI interaction involves using scripts to interact with the graphical user interface, often used for testing or providing accessibility support.

What is the best way to choose an ID that changes based on the index position?

Let me clarify my point first. Within a dropdown menu, there are 5 buttons - 2 with fixed IDs and 3 that can be altered through a separate micro service (such as when changing break types). The IDs for these 3 buttons are dynamically generated based on th ...

Is it feasible in Selenium to report a failure for a particular test case step and carry on with the rest of the steps if necessary?

Is it possible to report and continue with remaining steps in Selenium if a step fails for a test case? The current behavior halts the execution if there is an exception. Below is an example of how a test case looks like: public class TC002_abc extends Op ...

Is there a way to locate multiple buttons on a webpage that have the same id and field name but varying values using selenium?

On my webpage, I am looking to interact with four submit buttons. All four buttons have identical Id and name attributes, with the only difference being their values. Is it possible to locate and handle these elements using Selenium WebDriver? (Consideri ...

What strategies can be used to create a Page Object Model that is free from redundancy?

Currently, I am working on automating UI testing using the Page Object Model (POM) in Python with Selenium. One question that I have is how to handle duplicate test cases efficiently. For instance, let's consider two web pages: the Login page and the ...

What sets Select Frame and Switch Window apart in Robot Framework?

I am a beginner when it comes to working with RF, and I have a question regarding the necessity of selecting a frame after switching windows and changing the main focus to the new window. Is it required to select a frame even if I don't plan on using it? ...

Encountering a problem while attempting to create a BDD framework with cucumber for loading a URL

Encountering error: java.lang.NullPointerException: Cannot invoke "org.openqa.selenium.WebDriver.get(String)" because "this.driver" is null Currently, I am in the process of developing a sample framework but have run into an issue wher ...

Ensuring the presence of a bootstrap angular alert with protractor and cucumberJS

I am currently utilizing protractor, cucumberJS, and chai-as-promised for testing. There is a message (bootstrap alert of angularJS) that displays in the DOM when a specific button is clicked. This message disappears from the DOM after 6000 milliseconds. ...

Selenium faces timeout issues or may throw an Exception when executed within CCNET as a service

I am in the process of setting up Selenium tests to be executed by CCNET, which operates as a service on our build server. Below is my Project.build file: <Target Name="AutomationTests"> <Message Text="~~~~~~~~~~~~~~~~$(HARD_NEW_LINE)" /> &l ...

An unexpected java.lang.ExceptionInInitializerError occurred when attempting to navigate to a different page using TestNG with Selenium

I've implemented the POM model with 2 key pages - LoginPage and HomePage. Each page has its own corresponding test classes: LoginTest and HomeTest. These test classes inherit from the BaseTest, which is responsible for driver initialization among all ...

What is the most efficient method for conducting cross-browser compatibility testing on a web application with Selenium automation?

After dedicating a significant amount of time to research without finding a suitable solution, I turned to StackOverflow for help. I have been using Selenium Webdriver to automate testing on various browsers. However, recently I encountered issues with ol ...

How can software design patterns be utilized for implementing branching logic?

Currently in my test automation, I've implemented a basic version of the Page Object Pattern. However, I've noticed that there is redundancy in my code. Within a single class, I have multiple methods that essentially perform the same task but return diffe ...

Creating a GlobalVariable dynamically in Katalon during runtime using script mode

I am a beginner with the Katalon Studio tool and trying to dynamically add GlobalVariables by inputting both the variable name and value. I have found a piece of code that should help me achieve this, but I am struggling to understand it as it utilizes met ...

Tips for arranging a draggable list in Selenium

Here is a link for practicing sorting: I attempted the sorting with the following code: Actions action = new Actions(driver); List<WebElement> elements = driver.findElements(By.xpath("//*[@id="demo-tabpane-list"]/div/div")); fo ...

The if condition in Kantu is throwing an error due to an invalid token being

Recently, I decided to give the Kantu web automation tool a try for the first time. While most of it seems straightforward, I've come across an issue when trying to loop through a CSV file. Here's the relevant section of my script: { "Command": ...

Creating a framework for automating tests on a web application

As a newcomer to automation testing, I find myself needing to test several web applications with scripts. I am unsure of where to even begin in designing the framework from scratch. Can someone recommend a more effective architecture that is easily scalabl ...

Discovering WebElements: The key to effective web development

Our automation process currently relies heavily on @FindBy with Selenium/WebDriver/Java. This includes: @FindBy(css="a[name='bcrumb']") protected List<WebElement> breadCrumbLinks; @FindBy(id="skuError") protected WebElement skuE ...

Discovering how to navigate to a link within a web table using Cypress has been a challenge, as I keep receiving the error message stating that the element is not visible due to its CSS property being

Trying to click on the first enabled link in the 'Action' column of a web table has been proving difficult. In the example given, the first two rows do not have an enabled link, so the goal is to click on '8.5 AccountH' https://i.stack.imgur.com/gbYvY.png ...

Tips on how to incorporate information into variables in cucumber's feature files?

Currently tackling a UI selenium project where the goal is to extract String data from the UI and convert it into a variable within my .feature scenario file. In order to illustrate, let's take an example where I only have access to the customerID: ...

Simulating server-side interactions in Node.js with TestCafe

I am currently working on a project where I need to figure out how to mock server-side requests. While I have successfully managed to mock client-side requests using request hooks, I am facing challenges when it comes to intercepting server-side requests ...

Can an if-else statement be incorporated into the Cucumber test steps for a scenario that did not originally include one?

Here's the situation I am facing. In the past, the system under test (SUT) had just one button labeled "refund" for offers. Due to legal reasons, this button is now only accessible 20 days after the offer creation. Once this time period has passed, t ...

What is the method for inputting text into a textbox during automation testing?

I am currently testing out c# with selenium on the website . One of the first steps is to log in to the site. To do this, I located a button named "Вход" in the top right corner using xpath and clicked on it. After the page refreshed and changed, the ...

Is there a way to consistently choose the final radio button every time?

I am currently working on automating a verification page using Selenium WebDriver. This page consists of three questions, which are randomly selected from a pool of 20 questions. Each question has five radio button options, totaling to 100 separate radio ...

Is there a way to programmatically trigger the opening of the Inspect Element tool (F12) in

Is there a way to access the network tab directly from my code in Selenium WebDriver using Java? Alternatively, is there a method to simulate pressing the F12 button through script? ...

Capturing a screenshot of the Task bar in Java using Selenium

Looking to capture a full screenshot of a web application page, including the Windows Taskbar using Selenium in Java. Seeking guidance on how to achieve this. The current code I am using captures the screenshot of the webpage, but it doesn't include ...

Stop the loop in cypress

We have a certain situation as outlined below loop through all name elements on the webpage if(name.text() matches expName) { name.click() break out of the loop } else { createName() } How can I achieve this in Cypress? Using return false doesn't seem to ...

Encountering a problem when executing the mobile automation script using Appium

Encountering an issue while running my automation script with Appium. I'm executing a mobile automation script on a Windows Desktop machine with the following software setup: Software Set-Up: 1. Android Studio 2. Appium 3. Mobile/Tablet connected ...

What are some effective techniques for developing a script to automate a straightforward task with selenium?

Hey there! I'm just starting out on my coding journey and I have a cool project idea. I heard about this guy who wrote a script to send a text to his wife when he was working late, and I want to do something similar. Basically, I need a script that can lo ...

Can TestNG allow for the implementation of global parameters?

Currently in the process of automating a web app using Selenium WebDriver framework along with TestNG. Looking to assign parameters for each test classes in the testing.xml file, however most resources online only show how to set predefined parameters for ...

Encountering an error in my IntelliJ where I am struggling to import WebDriverWait despite already having the dependencies listed in my POM.XML file

Encountering an issue with WebDriverWait https://i.stack.imgur.com/nQZiL.png Despite adding the dependency in my pom file, I am unable to import it. I am facing an error in Intellij which seems to be related to a Maven repository problem. https://i.sta ...

Appium is reporting a console error stating, "The specified search parameters were unable to locate an element on the page."

Having difficulty finding the element in my mobile app. ` public class Ovex { private static AndroidDriver driver; public static void main(String[] args) throws MalformedURLException, InterruptedException { DesiredCapabilities capabilities = n ...