Questions tagged [automated-tests]

The implementation of software to manage and oversee test procedures, evaluate actual results against predicted expectations, establish test prerequisites, and facilitate various test control and reporting tasks is referred to as test automation. Typically, this entails streamlining an existing manual process that follows a standardized testing methodology (source: wikipedia.org).

Is it possible to run a Cucumber Test with just one command, depending on the tags condition? For example, only execute the @Regression tag if the @sm

I am currently facing a need to develop a single run command or script file that can execute the @Smoke tag test first, and if it passes, continue on to execute the @Regression tag. If the Smoke test fails, then the execution should be aborted. We are wor ...

The combination of Cypress and Istanbul is failing to produce any code coverage reports

I am currently working on a VueJS app and testing it with Cypress. One of my main objectives is to gather code coverage information. After running tests in Cypress, I am able to generate a .nyc_output/out.json file that shows how many times specific lines ...

Guide on setting up the Working Hours Jenkins Plugin

In order to restrict the JENKINS execution to only working hours, we have set it up to run from 8am to 6pm daily. The job is scheduled to stop in the evening and automatically resume in the morning using the Working Hours Jenkins Plugin. However, after con ...

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 ...

Learn how to effectively manage an element within an HTML-5 document using Protractor

I am new to Protractor and my task involves automating third-party tools. I encountered an issue where I couldn't locate a specific web element that changes its state and pulls data from another application when clicked, causing its class value to cha ...

Can the Katalon Chrome Browser Extension be used without an internet connection?

I have been using the Katalon extension for Chrome to record browser actions and play them back with minimal interaction. However, I noticed that when I start recording, the extension notifies me, but when I tried to use it on my personal laptop offline, i ...

While Xpath can be successfully located within Elements and Console, it encounters difficulty when attempting to be located during application execution

I'm currently enhancing my skills with Selenium Webdriver along with ChromeDriver, focusing on XPath. Below is the code snippet that I attempted to run: WebDriver driver; String baseURL = "http://youtube.com"; System.setProperty("webdriver. ...

Guide to Retrieving Response Data and Converting it into HTTP Header Manager in JMeter

After running the Login sampler, I received the following result: [Login Sampler Result Data][1] In this output, I need to extract "access_token":"91kLM68tdMBoDFRURArvdmwYgWV9Nr2sHYDwivTM" and store the value "91kLM68tdMBoDFRURArvdmwYgWV9Nr2sHYDwivTM" ...

Attempting to locate an element using Selenium IDE proves to be challenging unless each command is executed individually

Currently, I am utilizing selenium ide for automating my tests. Once I click on a link, a popup window appears with a div containing text. Strangely, I am unable to retrieve the text within the div tag without either double-clicking on it or executing the ...

Launching Selenium Hub, testing two browsers and executing tests using Selenium Python only on one of them

Summary: I have set up Selenium hub on my Mac and launched two browsers, but the test only runs in one. What could be causing this issue? I recently installed Selenium hub on my Mac running OS X 10.11.5 using the instructions from this link. After install ...

Ways to choose a particular radio button from a set of similar radio buttons using Selenium WebDriver

Seeking assistance with automating the booking process on an airline website. On the second page of the booking process ('Select Flights'), there are numerous radio buttons that appear very similar to each other. How can I ensure that I select th ...

Unable to locate the addEventListener function when utilizing php webdriver and selenium

I have been working with the webdriver for just three weeks now, and I've come across an issue regarding finding addEventListener. My setup includes using the selenium standalone server in combination with a PHP framework developed by Facebook. My g ...

Enhancing web forms with Python and Selenium WebDriver: Implementing new input fields

Currently, I am utilizing the python3 unittest library in conjunction with selenium webdriver for my project. Despite having an existing question within my application, I am encountering a problem when attempting to add a new question. Rather than insertin ...

Is there a way to execute Selenium test scripts without the need for local installation or running?

I am in search of a way to create a central 'hub' for Selenium within my workplace so that every employee can easily access it. For example, if Tester A writes test scripts, Person B should be able to run them without manually transferring the scripts to t ...

Automating testing with JavaScript and Selenium WebDriver

Can testing be automated using the combination of JavaScript and Selenium? I am not familiar with Java, Python, or C#, but I do have expertise in Front-End development. Has anyone attempted this before? Is it challenging to implement? Are there any recom ...

Tips for bypassing camera and microphone pop-up notifications in Selenium WebDriver tests

At the moment, my tests follow a specific flow that triggers microphone and camera alert popups in Chrome: https://i.stack.imgur.com/QHwF5.jpg I am looking for a solution to disable these alerts using Selenium Webdriver with Java. I have already tried us ...

Having trouble with clicking the Sign-in button

<div class="form-group dl-padding-10"> <select class="form-control form-control-solid" name="SelectedRoleID" id="SelectedRoleID" onchange="removeBorderColor()" required=&qu ...

Is it possible to extract the value in JavaScript, add it, and then return the result after a for loop in Cypress automation?

checkActiveInterfaces() { var totalSum = 0; var counter; for (counter = 1; counter <= 5; counter++) { cy.xpath(`(//*[name()='g' and @class ='highcharts-label highcharts-data-label highcharts-data-label-color-undefined ...

What is the contrast between element.getAttribute() value and a String in protractor?

When using protractor and typescript, I need to verify that the text saved in a textbox matches a certain string by comparing it with the resulting value of element.getAttribute("value"). Unfortunately, getText() does not work for this scenario b ...

Implementing NPM commands in Jenkins using shell scripting

Whenever I attempt to run the "npm" command, I encounter a syntax error. Users/Shared/Jenkins/Home/workspace/projectName/npm test ^^^^ SyntaxError: Unexpected identifier This is the Jenkins Build shel ...

Challenge encountered when searching for an element with xPath in Python using Selenium

I'm trying to log in to a webpage and click on a button located at the top of the site. However, when I run my Python code, it gives me an error saying that the element could not be found. Here is the code: import selenium from selenium import webdriver ...

Select the radio button that is hidden from view

There is a radio button with a hidden input that I can't see when inspecting the element. This is what I am encountering: https://i.stack.imgur.com/LnKnz.png Here is the HTML code snippet: <rhr-radio-button element-id="criterion-type" model="$ct ...

AssessmentMonitor using Selenium

I have implemented TestWatcher to perform certain actions based on test output. However, the function that I need to call, createScreenShot in testFailed, requires a driver as an input parameter. Unfortunately, the driver is protected and not static, as al ...

Although XPath is displaying all elements in the selector hub from the expected div, Selenium is not able to capture them fully

I am looking to extract all the headers from a table using Selenium. I am utilizing XPath to locate the web element. Here is the XPath: "//div[@class='dataTables_scrollHeadInner']//tr[@id='report-data-table-header-0']/th" Whe ...

Guide to selecting a specific year on a calendar using Selenium with JavaScript

While attempting to create a Selenium test using JavaScript, I encountered an issue with filling in calendar data through a dropdown menu: const {Builder, By, Key} = require('selenium-webdriver') const test2 = async () => { let driver = await new Bui ...

The Jbehave selenium framework is not properly indicating a failed step when using the verifyEquals method

I'm currently working with Selenium WebDriver and JBehave to automate BDD tests, but I've run into an issue when verifying values. I don't want my tests to fail immediately after encountering a failed assertion. Instead, I need them to verif ...

Encountering a "file or directory not found" error during the installation of ply using

I recently stumbled upon an interesting project for testing Rest APIs. I was in the process of installing ply from https://github.com/ply-ct/ply npm install ply-ct --save-dev Encountered this error, wondering if anyone has a solution npm WARN saveError EN ...

Having trouble finding the dropdown generated by the jQuery plugin

In the process of developing an automation test script using C# and Selenium WebDriver, I encountered a challenge where I needed to click on two dropdowns consecutively. The HTML source code for the two dropdown elements is as follows: <select id="Ser ...

Extract information from a webpage using Selenium WebDriver

Currently, I am working on mastering Selenium, but I have hit a roadblock that I need assistance with. My task is to gather all the betting information for games from the following link and store it into an array. Given my limited experience with HTML an ...

How can I retrieve arguments/parameters from an Allure report while it is running?

Within our testing framework, we utilize the allures .addArgument method to include a parameter in the report indicating which team is responsible for a specific test. AllureReporter.addArgument('teamName', 'myTeam'); We have numerous tests already create ...

Unable to define the geckodriver system path through Python

I am facing a challenge trying to set the system path for geckodriver to use with Firefox on my OSX computer. Currently, I have it working smoothly for Chrome with the following setup: driver = webdriver.Chrome('/Users/Robert/Applications/chromedrive ...

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 ...

Executing a recorded Appium test

Recently, I decided to delve into the world of Appium. After installing the Appium app and adding the simulator app file, I launched the simulator using the "launch" command, following the steps outlined here. I successfully recorded a test on my app and ...

Having trouble launching Cypress on my Mac - stating that it cannot find Cypress

Despite searching through multiple answers on S.O, none of them have solved my issue. To better explain my question, I've created a video. You can view it here Everything was working perfectly just yesterday, so what could have possibly gone wrong? ...

Capybara is throwing a NoMethodError - looks like something is

I need help with adding a tag to a tag field. To populate the tag field, I must either add ',' or press enter with a tag name such as "Ezgi,". Below are the steps I have outlined for this task. When(/^I enter "([^"]*)" on Label field$/) do |arg1 ...

Python Selenium - Retrieving Attributes

Currently, I am attempting to create an automated web test using Selenium Python. My goal is to extract the xpath of a WebElement and/or the desired method for it (such as send_keys()) from an Excel file. Although my code is functioning properly for most ...

Comparing the name and URL of a link using Selenium webdriver in C#

I am currently looking for ways to automate the testing of links on a Sharepoint site, ensuring they are connected to the correct URL. However, I have hit a roadblock when it comes to performing the comparison. After locating the links and adding them to ...

Utilize the same web browser across numerous test scenarios in Katalon Studio

I've been on a quest to discover if there's a way to use the same browser for multiple test cases. The website I'm testing requires each login when the browser is opened. Is there a feature that would enable me to maintain the same browser session and sea ...

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 ...

How can I monitor and handle JavaScript errors without causing TestCafe tests to fail?

As I begin writing TestCafe tests, a problem arose on our website - a JS error in the console causing test failures. While it was satisfying to catch this issue, it also highlighted the fact that even minor JS errors could lead to test failures and hinder ...

The quit() method in Chrome 65 does not successfully kill all Chrome processes

Ever since updating my Chrome browser to Version 65.0.3325.162 (the latest version), I've been experiencing a problem. Every time my tests start, an additional zombie Chrome process appears in the task manager, consuming a significant amount of CPU r ...

Accessing environment-based constants in TypeScript beyond the scope of Cypress.env()Is there a way to gain access to environment-specific constants

Imagine I have an API test and the URL and Credentials are different between production and development environments: before("Authenticate with auth token", async () => { await spec().post(`${baseUrl}/auth`) .withBody( { ...

Implementing a 10-second alert display in selenium

Task at Hand: I need to display the alert on my page for a few seconds to allow reading. Is there any function in Selenium Web-driver that can help with this? I am new to automation and have been learning about explicit waits. I tried using explicit wait ...

Resolving a NullPointerException in Selenium Java JUnit Test Cases

Encountered a puzzling error while running a test in navigateAllMenus.java. When the script tries to locate loginLink, it halts and throws a java.lang.NullPointerException on line 28: _a_LoginPage.loginLink(driver).click();. Despite attempting different x ...

Is it beneficial to mandate developers to include element IDs for the purpose of creating thorough automated tests?

Currently, I am in the process of writing Selenium tests for a web application that is built using React. However, I am encountering some challenges when it comes to writing tests in Selenium. It seems that many elements do not have unique IDs that can be ...

Searching for the perfect way to choose 'mat-checkbox' using the selenium webdriver?

There are 4 checkboxes that I need to select using Angular code and Selenium for automation. Please refer to the provided code for assistance. I specifically need to select the checkbox labeled "Main st & 19th St". View image description here ...

Choosing an item from a dropdown menu in C# using Selenium in web assembly is proving to be ineffective

I am currently working on some automated tests using Selenium Web driver. I have been able to write a script that can locate the class, but I am facing difficulties in selecting one of the items from the drop down menu. Here is the script I have so far: ...

The NoSuchMethodError is thrown when trying to open Selenide

Can someone help me with this issue I'm facing while trying to navigate to the Google page? String url = "https://www.google.com"; Selenide.open(url); The specific exception that is being thrown is: java.util.stream.Collector com.google ...

Is there a way to adjust the typing speed of the Chrome driver in Selenium?

I'm working on a UI test that utilizes the Selenium Chrome driver. I would like to adjust the form filling speed to be slower, but my attempts to find a solution through Google have been unsuccessful. Does anyone happen to know how this can be accomp ...

Steps for logging into a Google account using Selenium1. Open the browser

I attempted to access my Google account using Selenium and encountered a roadblock. From what I understand, there are some settings that need to be configured for this task. I have already attempted the following: View But unfortunately, it did not provi ...

I'm encountering an error in TestCafe that says "TypeError: Cannot read properties of undefined (reading 'match')". Which specific segment of my code is causing this issue?

retrieveUrlFromEmailData(emailData:any){ const emailContent = emailData.email_text; const urlPattern = /(https?:\/\/[^\n]*)/; const foundUrl = emailContent.match(urlPattern)[0]; return foundUrl } ...

Which would you prefer: tools for recording and playing, or tools based on code/script?

Being new to test automation, I am looking to start implementing it for our platforms (iOS, Android, and Web). Now, the big decision is whether to go with "Record and Play" tools like Ranorex or stick to "Code/script based" tools like Selenium using C# p ...

Experiencing an issue in Test Cafe when attempting to click on an invisible link using the Client Function

I need to find a way to click on an invisible button in HTML. I attempted to use ClientFunction, however I encountered an error related to the element. import { Selector,ClientFunction } from 'testcafe'; fixture('Clicking Invisible link&apo ...

Is it possible to evaluate the visual responses when interacting with an element?

Is it feasible to assess the visual response of an element during interaction? For instance, imagine there is a button on the webpage that visually becomes active a few moments after being clicked. Similar to the quick animation shown after clicking one o ...

What steps should I follow to run tests with Maven while ensuring that the features are ordered correctly?

Currently, my integration tests with an e-commerce application are being run using the combo of Maven + Selenium + Jenkins. An issue arose where Maven does not adhere to the order of the .feature files: 1-test_case.feature 2-test_case.feature 3-test_ca ...

Discovering webElements on Facebook using Selenium with Java

I'm currently working on a test script to post on my Facebook wall, but I have encountered an issue - I am unable to locate the element (getting an NoSuchElementException) even though I know it exists. I tried using FirePath to find a cssSelector, but no l ...

Exploring folders such as snapshots

While I am familiar with using snapshot testing for UI components in React, I am curious if there is a way to compress a folder and conduct tests on it similar to checking if snapshots align. Currently, I am in the process of creating unit tests for an ...

Challenges encountered in retrieving 'text' with Selenium in Python

After attempting to extract the list data from every drop-down menu on this page, I managed to access the 'li' tag section and retrieve the 'href' data using Selenium Python 3.6. However, I encountered an issue when trying to obtain the ...

Comparing NemoJs and NightWatchJS: The Pros and Cons

As a beginner in both frameworks, it appears that Nightwatch has more extensive documentation and API features compared to Nemo. What are the main benefits of choosing one over the other? ...

Handling sporadic failures of Selenium tests during automated deployment

Our C#/ASP .Net web application undergoes the build and deployment process by our server, Jenkins. One crucial step in this process is ensuring that all automated tests, including functional tests using Selenium 2 WebDriver and NUnit, pass before deploymen ...

I'm currently in the process of automating tests for a nopCommerce website as a way to improve my skills, however, I've

Currently, I am in the process of practicing test automation on the website . However, I am facing an issue where the test stops after the first and second steps, indicating that it has passed without proceeding to the subsequent steps. The automation tool ...

Error in main thread: The program was unable to find the specified element

Issue encountered in the main thread: org.openqa.selenium.NoSuchElementException: The element being searched for cannot be found: {"method":"css selector","selector":".ui-state-default.ui-state-highlight.ui-state-active"} Encountering an error when using ...

Selenium has encountered an issue and is no longer functional following the FindElements method

At times, when I utilize the Selenium FindElements(By) function, it throws an exception and causes my driver to stop working. The issue could potentially lie within the "BY" parameter: when I attempt to search for the same elements using a different method ...

Can you provide guidance on integrating the Selenium Page Object Pattern C# Code into my project?

Looking to implement the Page Object Pattern in C# with Selenium? Check out this helpful guide: In one of the examples, there is code that looks like this- [FindsBy(How = How.Id, Using = "sb_form_q")] public IWebElement SearchBox { get; set; } If ...

Having difficulties in choosing an option from the dropdown menu

I am experiencing an issue with selecting the country 'India' from a dropdown menu on my webpage. The dropdown menu opens a search box and a list of countries, allowing users to search for a country by keyword. However, despite attempting to sele ...

Guide to automatically running a Chrome extension that interacts with the main webpage?

I am looking for a way to automate testing for a specific chrome extension. While I have successfully used selenium-python to automate tasks on the parent web-page, I am facing a challenge automating the chrome-extension itself. Selenium is not designed t ...

Discontinuing browser session in Selenium automated end-to-end testing

When conducting automated testing on a standard Single Page Application (SPA) page, the question arises: should the browser be closed after each scenario run by Selenium end-to-end (e2e) tests, or should it remain open? One advantage of closing and re ...

Using 'cy.get' to locate elements in Cypress tutorial

Is there a way to search for one element, and if it's not found, search for another element? cy.get(@firstElement).or(@secondElement).click() Can I use a function similar to || in conditions for this scenario? ...

Creating Selenium reports with Jenkins (formerly known as Hudson) from JUnit XML files

When it comes to automating tests for our web project, we rely on a combination of Hudson, PHPUnit, and Selenium. Our test results are saved in the JUnit XML format. However, when attempting to include report generation using the Hudson feature Publish JU ...

Is it possible for Selenium to operate on Android devices independently, without the use of adb?

I am currently in the process of developing a web test automation application for Android. I am interested in exploring the possibility of running chromedriver (Selenium) directly on an Android device or including it as part of my application. While the co ...

Why bother writing tests using keywords and the robot-framework syntax in RobotFramework?

I'm pondering the benefits of utilizing RobotFramework for writing tests in its syntax compared to creating custom libraries. For instance, imagine we need to create a test that scans a directory and confirms no files have been altered. This could be achie ...

When using Protractor with Typescript, you may encounter the error message "Failed: Cannot read property 'sendKeys' of undefined"

Having trouble creating Protractor JS spec files using TypeScript? Running into an error with the converted spec files? Error Message: Failed - calculator_1.calculator.prototype.getResult is not a function Check out the TypeScript files below: calculato ...

Activate WebDriver to open a new browser tab

After extensively searching the internet and examining the WebDriver API, I couldn't find a method to open new tabs using WebDriver/Selenium2.0. Can anyone verify if my assumption is correct? Thanks, Chris. P.S: At the moment, it seems like the only ...

A tool designed to create a function that can fetch information from a JSON file

Currently, I am working on a function that accepts arguments and combines them to form a line for searching data in a JSON file. To accomplish this, I have initialized a variable for the readFileSync and then added the function's arguments to it in order t ...

SeleniumLibrary does not recognize the parameter executable_path

Transitioning from pytest + Selenium to robotframework + SeleniumLibrary + Selenium has presented some challenges for me. Even with SeleniumLibrary's simplified keyword structure, I have encountered difficulties performing basic operations that were s ...