Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [browser-automation]

Questions regarding automation of web applications for testing purposes according to specific of used web browser.

0
votes
1answer
47 views

Automation testing software for custom browser?

I'm looking for suggestions for software to use to automate regression testing of a a browser I'm working on: https://github.com/maidsafe/safe_browser It's built on Electron but designed to work on ...
-1
votes
0answers
36 views

Cannot get xpath value from dropdown item

I am trying to monitor an application in Newrelic using javascript code, while trying to click on a dropdown item which pops after click, i want to get the xpath of the option on that dropdown. Steps ...
0
votes
2answers
53 views

Unable to find Dynamic Xpath

I am unable to find dynamic xpath for below code <input class="login_button" type="submit" tabindex="3" id="@COMMAND_EVENT@" name="@COMMAND_EVENT@" value="Submit" style="top: 20px; left: 360px; ...
1
vote
1answer
24 views

Tree of HTML from JSoup?

I can see why the two iterate methods get caught in an infinite loop calling each other but can't see how to reasonably prevent this. I suppose I could have a counter to simply limit the depth. But, ...
1
vote
0answers
43 views

Facing Timeout issue while earlier this code was working

import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; public class Test1 { ...
-1
votes
1answer
53 views

Me being a Automation Tester (QA), how can I win a Ideathon? What should I develop for Ideathon? [closed]

I have over 9 years of experience in Automation. Still, I think my Java coding skills are limited. Having said that, if I target to win Ideathon 2019, what should I develop?
0
votes
2answers
45 views

Trying to get xPath of a dropdown item on webpage in NewRelic monitor

This is the code which I'm validating but its not able to get the Logout option under the dropdown. I copied the xpath value of Logout from the dropdown. This is what the dropdown looks like. This ...
7
votes
5answers
508 views

Requesting name and/or id for better Selenium testability

I'm testing an application using Cucumber + Java + Selenium and I'm seeing that, most of the type, elements don't have a name, nor an id. This is the case for almost every component on the page but, ...
0
votes
2answers
29 views

How to click on Submit button from POP-UP window if submit button is available after scrolling page to down?

I am submitting a form value's through selenium and java. On the form initially I'm searching a product and selecting some values. Then it's showing a pop-up window with scroll to the pop up; see the ...
0
votes
1answer
25 views

Tidy HTML with BaseX

How do I tidy this HTML for baseX? Working from a basic example. Looks like the HTML isn't valid, or at least baseX has apparent problems with parsing it: thufir@dur:~/NetBeansProjects/...
2
votes
3answers
99 views

Which approach should be applied when automating stories? What are the approaches or methodologies for it?

Here is what approach means to me while automating any story Normal approach should we automate only functional flow not caring about the UI things like font of text, font type of text, color of ...
1
vote
1answer
50 views

POM: driver is passed as an argument? Always?

Example code: Driver is being passed as an Argument so that Selenium is able to locate the element on the browser (driver). Element is returned, so that an Action can be performed on it. ...
2
votes
0answers
46 views

decompose an HTML list with page fragments

note: Looking for simplest possible example of PageFactory and fragments. I've been referencing an article which uses additional libraries I wasn't aware of. The desired structure: Where there's ...
0
votes
4answers
74 views

I am not able to click on Google Search Button

This is the HTML source of the button: <input value="Google Search" aria-label="Google Search" name="btnK" type="submit"> This is my code: import org.openqa.selenium.By; import org.openqa....
1
vote
2answers
78 views

NullPointerException when using @FindBy

I'm getting a NullPointerException when trying to use @FindBy because the object reference is only declared and not instantiated. What is the usage? The docs give example declaration but no instance ...
0
votes
1answer
50 views

xpath query for specific String value

My project is crashing with: Element info: {Using=xpath, value=//a[contains(text(), 'Books')]/@href}. The output (crash): thufir@dur:~/NetBeansProjects/com.toscrape.books.selenium$ thufir@dur:~/...
2
votes
1answer
21 views

Change Simulated 3G Network For Lighthouse CLI

I'm having difficulty changing the network for Lighthouse. It is defaulting to 3G throttle. Ideally, I would like to know how to run the performance audits without throttling. Thanks in advanced.
2
votes
1answer
43 views

RPA tool for automation

Is it a good idea to use TagUI (RPA tool) for website automation? if so what are the merits of using this tool over selenium?
0
votes
1answer
77 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 ...
2
votes
1answer
59 views

How to interact with the radio button if isDisplayed, isEnables are false

Scenario: I am automating a feature where i need to click on the radiio button but after many attempts it didn't work. So I checked with isDisplayed, isEnabled and isSelected.Upon execution it was ...
0
votes
1answer
66 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 ...
1
vote
1answer
160 views

Multithreading: chromedriver does not open url in second window

Java code in thread function, System.setProperty("webdriver.chrome.driver", "/usr/bin/chromedriver"); ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.addArguments("--no-sandbox"); ...
0
votes
2answers
50 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
26 views

Cucumber Feature on executing throwing "The path to the driver executable must be set by the webdriver.chrome.driver system property;

I am Using Cucumber Selenium Framework for Test Execution. And I have set system Properties correctly because the same script was running fine but now it is throwing "The path to the driver ...
2
votes
4answers
307 views

How to fetch the text values from the dd tag using selenium

I am automating one Project in my organization and came across one issue. I am very new to automation and selenium. Issue that i am facing: not able to capture the text inside the dd tag in the html ...
1
vote
1answer
48 views

Getting nosuchElement Exception for a web element even though I tried all possible solutions

I am using Selenium with Cucumber to automate one web application, But I am stuck at one element which is not working out with the XPaths and link text I also applied the implicit and Explicit wait, ...
0
votes
1answer
239 views

Exception in thread “main” org.openqa.selenium.NoSuchElementException: Unable to find element with css selector ==

When I am trying to run the below mentioned Selenium web driver code in IE 11 browser , I get below error "Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to find ...
1
vote
5answers
886 views

Unable to click button using Selenium Webdriver Java

I am trying to click a button through webdriver. After inspecting the button element it highlights to the following: XPath: /html/body/div/div/main/div/div[2]/div/div[2]/table/tbody/tr/td[4]/form/...
1
vote
2answers
190 views

How to go to a certain Xpath by Searching a Text in Selenium WebDriver

I have below HTML which is having a table with 15 rows (below are the 2 rows for example)- <table id="task" style="width:100%" class="border"> <thead> <tr> <th>Task </th>...
0
votes
2answers
178 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 ...
2
votes
2answers
161 views

What should be the approach to test styles using Selenium

In my UI tests I would like to verify particular style values for the elements. Below is the example list of the styles I'd like to verify: font style font size padding margin Is there a way to do ...
1
vote
1answer
31 views

White Label Website Automated Testing

My company is in the process of setting up a white label website, in which there are slightly different user journeys. These journeys, for the most part, use the same functionality but I'm wondering ...
2
votes
5answers
268 views

Xpath: which is much more reliable source - Chrome or Firefox?

On Google chrome, inspecting an Element and copying it's xPath gives me the following value //*[@id='Body']/app-root/app-generic-product/section[2]/div/app-product-summary-list/app-product-summary[2]/...
0
votes
1answer
445 views

Selenium Webdriver Java: Setting date on date-picker. Year is not populating in date-picker

I am automating a signup form for web application and there is a date of birth field which has date-picker on it. I am sending values in it by using sendKeys and the problem is that Year is not ...
1
vote
1answer
168 views

Error running selenium test on ubuntu

I'm having trouble running a selenium test on ubuntu, but everything works fine on my windows system. I'm using a mocha test suite, and am using selenium-webdriver to run the selenium test written in ...
1
vote
2answers
227 views

How to handle tooltip on onmouseover in selenium java

test case is to show the tooltip message my html code is below <td id="pendingBalance" align="right"> <a onmouseover="displayHelpPopup(this,arrHelp[20][0]);" onmouseout="closePopup();" ...
1
vote
3answers
40 views

Randomise the data for a sign up form

Which is the best/efficient way for a QAE to test the field validations for a sign up form: 1: Do I need to create a util class to randomly generate the data? or 2: Do I need to take hard-coded test ...
1
vote
1answer
443 views

“Multi-select dropdown toggle” webdriver issue

First time here. I've got an issue you might be able to help with. Working on chrome webdriver automation, there's a dropdown menu that's toggled with a click. I need to be able to select list items. ...
1
vote
0answers
19 views

iOS Safari - automated browser session

I'm looking for a automation for the following. I have a list (just plan text) of around 10000 URLs which belongs to a simulated surf session. Now I want to replay this surf session on different iOS ...
1
vote
1answer
35 views

Strategies for reliably reproducing bugs in a frontend Javascript applications

The Problem We have a React JS application which sometimes exhibits issues on certain browsers or computers. Currently we are prelaunch and have no customers. We also do not have a dedicated QA ...
1
vote
1answer
55 views

Is there a way to check if an external program is running from Katalon Studio?

My application has a print document option that opens the pdf reader. Is there a way to check if the pdf reader is running from Katalon?
1
vote
3answers
3k views

How to select and click the first enabled button?

I am currently changing my XPath every time to click on the enable (Qualification check) button. However, I want to click on the first button that is in the enabled state. I have a total of 10 buttons ...
-1
votes
1answer
109 views

Not able to select the checkbox of a html row [closed]

MY CODE: package com.drishti.automate.testing; import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa....
0
votes
0answers
125 views

How to upload a profile pic using python selenium in ubuntu

i am trying to upload a profile picture ,but i am not getting how to do it . I have written a code like this (Sorry i cant share the entire code here i am only sharing a part of code used to upload a ...
0
votes
3answers
411 views

C# webdriver: Issue with wait.Until(ExpectedConditions.VisibilityOfAllElementsLocatedBy(By.TagName(“tr”))); returning WebDriverTimeoutException

I am working with the following html table, <tbody role="rowgroup"> <tr data-uid="d4d2114f-2aaf-4498-977b-ae5b8c16618c" role="row" class="Standard k-state-selected" aria-selected="true"> &...
0
votes
2answers
264 views

Unable to locate element to sendkeys C# WebDriver

im working with the following HTML <tbody> <tr class="formRow"> <td class="labelColumn"> <span id="ctl00_MainContent_lblTemplate">Template</span> </td&...
0
votes
2answers
2k views

How to get Embed link from Openload API after Remote upload? Selenium & Python

im trying to use Openloads API in python, i can do a remote upload like this: ol_url = driver.current_url resp = ol.remote_upload(ol_url) file_id = resp.get('id') Now i have a file uploaded in ...
0
votes
0answers
1k views

Need to filter Url and capture network traffic with selenium Webdriver

I have a website "cnn.com" and I need to filter out smetrics domain call and save all the HAR files. Programming language: Java Browser: Chrome Tried this code to save HAR files: //to initiate ...
2
votes
2answers
216 views

Benefits of BDD tools such as SpecFlow for tech debt in automation

We are starting to automate our manual regression suites using Selenium Webdriver and NUnit. The tests we will be automating are quite detailed in terms of steps and expected results however I was ...
1
vote
1answer
2k views

How to compare image in Sikuli?

I want to compare one small part with full screenshot. Screen screen=new Screen(); Pattern pa1=new Pattern("/Users/37397/Desktop/Screen Shot 2018-03-27 at 6.02.42 PM.png"); String img=screen....