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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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" ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
<div class="form-group dl-padding-10"> <select class="form-control form-control-solid" name="SelectedRoleID" id="SelectedRoleID" onchange="removeBorderColor()" required=&qu ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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? ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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( { ...
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 ...
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 ...
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 ...
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 ...
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: ...
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 ...
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 ...
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 ...
retrieveUrlFromEmailData(emailData:any){ const emailContent = emailData.email_text; const urlPattern = /(https?:\/\/[^\n]*)/; const foundUrl = emailContent.match(urlPattern)[0]; return foundUrl } ...
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 ...
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 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 ...
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 ...
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 ...
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 ...
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 ...
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? ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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? ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...