Questions tagged [selenium-webdriver]

Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

Running a test in 15 checkboxes using protractor

In my Angular page there are 15 checkboxes and a label that when I select on each checkbox individually, a result will appear in the label. Plus when a checkbox click with a combination with others, ...
2
votes
1answer
1k views

Logging js console when doing selenium test using firefox driver

I'm writing selenium tests which are launch on the firefox (gecko) driver. If a test fails, I want to retrieve the log present on the firefox js console. In order to do that, I have added the ...
0
votes
0answers
6 views

convert to selnium java for loop code in python selenium

System.out.println("****************Scrolled down starts****************"); Thread.sleep(2000); for (int i = 0; i < 12; i++) { JavascriptExecutor ja = (JavascriptExecutor) driver; ja....
1
vote
3answers
54 views

How to resolve NoSuchElementException in Selenium Java?

I've been working on a company project involving Seleniumand I keep getting NoSuchElementException despite putting xpath, cssSelector and linkText. Below is my program. NewCard.java public class ...
1
vote
1answer
61 views

Which language has more libraries and bindings for Selenium WebDriver? Java or Python?

This question might sound repeated. I have searched Stack exchange and found many questions by users who ask mainly on which language they should choose for Selenium WD: Java or Python? But their ...
31
votes
4answers
225k views

A way to match on text using CSS locators

So I use xpath locators and slowly converting to CSS. I haven't found a way to do an exact match based on text. For example converting //a[text()='Log Out']. I know you can do css=a:contains('Log ...
1
vote
1answer
90 views

XVFB and Selenium on EC2 - Unable to view Chrome UI on VNC Viewer

My Selenium headless tests are triggered from Jenkins server and run in EC2-Ubuntu. I want to view the test live on Chrome so I installed Xvfb plugin on Jenkins. On EC2 I installed Xvfb. When I start ...
0
votes
1answer
37 views

Driver is not executable error in Jenkins but its running in Local Machine (MacBook)

I am working on MacBook. Our Jenkins server is running in linux server when I running tests via testing.xml file all test classes are running but when I run Jenkins build its not getting run Error is ...
0
votes
1answer
273 views

how to read the following data from excel using cucumber-java

Heading How to get the username and password from excel using cucumber package com.qa.excel; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import org.apache.poi.ss....
0
votes
5answers
5k views

Print all product details in search results using Selenium Java

I am trying to print product details from searched results from this page. This is the function I used for that. @Test(priority = 1) public void printSearchItem() { // print the product details ...
0
votes
1answer
4k views

App is launched but not able to perform further actions (App automation using appium)

I am new in mobile app automation I have successfully launched Google Playstore application in my android device. but,i can not click on next tab "GAMES". My Code package com.automate.app.screens; ...
2
votes
3answers
1k views

How to get Selenium 3.0.1 to work on a Mac with IntelliJ

I am using a Mac as well as IntelliJ. I am trying to update Selenium from 2.53 as the website I am testing has functions that no longer work with older versions of Firefox (version 46). I am trying to ...
1
vote
2answers
23 views

how to send the DB fetched values to frontend using selenium?

I wrote a program where values are coming from sql database.Now i want to send those values to frontend using selenium. say it is an pincode i fetched from Database but now if locate the element where ...
0
votes
2answers
20 views

Unable to get the list of elements to select a text from the auto-complete text box using Selenium WebDriver

I am trying to enter a keyword to an auto-select box and select the specific text that I'm passing from the populated list. Keyword: text_customer Text needed to select: Constants....
0
votes
3answers
5k views

How to integrate/merge multiple extent reports into one single report using selenium, extent report v3xx

I am running selenium scripts using jenkins jobs/multijob and its creating multiple html reports for different modules. How can we combine/merge all html reports to one single report? Extent report ...
0
votes
1answer
67 views

Multiple browser support

Currently, our automation suite runs on chrome (has been designed for chrome). We used cucumber with Java and Selenium. We are trying to make the current automation suite multi-browser compatible. The ...
0
votes
1answer
2k views

Python Selenium: Unable to find a element when the element already exists

I'm having issues looking for this specific input: <input type="text" class="criteriaFieldInput ui-autocomplete-input" id="KEYWORD" isautosuggest="true" suggestid="1" isolf="false" isphrase="false" ...
0
votes
1answer
31 views

Web page Not Scroll on mobile using java

I try to scroll two pages of website on mobile but one page is working fine but 2nd page is not scroll on mobile. Both pages working fine on window. Please suggest me how to scroll 2nd page. Below is ...
11
votes
7answers
9k views

How to autoupdate Chrome-driver in Selenium?

Every now and then when the Chrome is updated, the existing chrome driver used in the script becomes invalid and the below error message is displayed: selenium.common.exceptions....
2
votes
5answers
3k views

How to log out in facebook using python selenium?

I want to know how to log out of Facebook using python selenium. here's my code: from selenium import webdriver from selenium.webdriver.common.keys import Keys import time #from selenium folder ...
6
votes
4answers
98 views

What role does Docker play in Test Automation?

Should I learn Docker containers tool to run Selenium test automation. What's the purpose of learning it? Isn't it enough to run your automation project in Jenkins?
0
votes
0answers
21 views

Qmetry - How do I create a radio function using Qmetry Documentation?

I succeed to automate this radio button (HTML): <input type="radio" name="CurrencyCode" id="CurrencyCode_USD" value="02" onclick="...
-1
votes
1answer
69 views

How or which tool can be used for automating Cognos dashboard testing?

I am a tester and my company is using IBM cognos for creating dashbaords. These dashboards have many graphs and charts which can be customized by the user as per their need. Dashboards are built using ...
0
votes
0answers
56 views

Sikuli4Net is giving me an error on C# selenium

I was trying to implement image based verification on my selenium project with the help on Sikuli4Net. After following some tutorials I'm getting an error as below. The request was aborted: Could not ...
0
votes
1answer
143 views

How to handle this below window/pop up in chrome when i click on print link . I need to recognize it and click cancel on it

When I click on Print link in chrome browser , a pop is opened which shows it as a PDF file and then on the right side there are printing options with save , print etc buttons . Now when I click the ...
0
votes
1answer
43 views

Calculate the total of liabilities and check it is matching with the given value

I want to calculate the total liabilities amount from webtable and need to compare with the total amount which is present on webpage. I got the following error : Illegal/unsupported escape sequence ...
0
votes
2answers
42 views

How to deal with overlay animation using selenium webdriver?

The web application I'm trying to automate test cases for uses an overlay animation every time page is refreshed or as the user navigates from one page to another. I have tried applying fluent wait ...
0
votes
1answer
42 views

Function with the While/Try/Except construction intended to close pop-ups fails

The following piece of Python Selenium code do not work and I would be grateful for helping me to understand why. It is designed to close pop-ups that block access to the account button. The number of ...
0
votes
1answer
38 views

Not able to select option from div type listbox in selenium C#

Here the id=popupY8cuUiMiDU is dynamic.I need to get the Y value from span but there are multiple listbox with the same span attribute taking Y option. How can I select from listbox as there is no ...
3
votes
3answers
44k views

how to proceed after clicking a link to new page in selenium in python

I am clicking a link which takes me to new page, but I don't know how to proceed after that. When I try to find an element by id in the next page it gives me error: selenium.common.exceptions....
0
votes
1answer
223 views

Not able to add Bug from Testlink to JIRA (Required Version Number)

I have Integrated JIRA from testlink using REST API. I was also able to link the failed testcase to a bug in JIRA. But while trying to create issue in testlink there is a validation happening for ...
1
vote
1answer
34 views

Fetching wrong Employee count corresponding to office location in Selenium

I am fetching Employee count according to locating using Map Highlighted No of employees count is mismatch in Image like If i search in Web table Tokyo there count is 5 but here getting 6 for ...
0
votes
1answer
23 views

Unable to perform the vertical scroll up to the web element

I want to click on a web-element and perform some action. For that, the element needs to be visible. I have written the below code: WebElement element = driver.findElement(By.xpath("//div//span[@...
2
votes
1answer
179 views

Difference between Selenium getText() method and innerText property of an element

I am trying to get the text of an element using Selenium getText() method and using innerText property of an element and compare the output. HTML code: <div> <h1> DEF <p> Demo ...
0
votes
3answers
50 views

How to Verify Previous Month Arrow should not present in Current Month in GoIbibo Site

I am unable to Verify Previous Month arrow should not be present in DatePicker but as it is not present in DOM getting Exception unable to find Such Exception. void fillDepartureDate() { // Date ...
1
vote
0answers
25 views

selenium initial connect timeout

How do I tell selenium webdriver to retry/timeout when I start a session? I'm spinning up a remote standalone java server (aka hub) as a process I'm immediately going webdriver.Remote() and that ...
0
votes
2answers
43 views

Selenium Download Keep and Discard Problem (.cer or xml extensions)

I am Test Automation Engineer, working with Selenium and Java. I am developing selenium automation tests but I have a problem with downloading something from the software I am working on. Chrome asks ...
1
vote
1answer
47 views

Browser is closed only if test passed on VM

I use driver.Dispose(); and using ChromeDriver. But the browser is closed only if the test passed. On the VM if a test failed, the browser is still open. If I run tests from Visual Studio on local ...
14
votes
6answers
4k views

Why are Selenium tests so unstable?

I am running a few scripts (in my personal and business laptop) and every day I get a different error at a different step. Sometimes I run and it is passed, but I run again and get an error that an ...
7
votes
1answer
173 views

How expected condition 'isClickable' works in Protractor

I am trying to click a button as defined below: <button _ngcontent-xjt-c6="" class="ef-ui-btn-inline-sm ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only" ...
2
votes
3answers
74 views

Automation of Functional Testing across all browser

This answer Will the DOM structure vary for same HTML based on the browser made me think that if DOM renders the same for all browser then why do I need cross-browser functional testing. For example, ...
0
votes
1answer
2k views

How to launch Firefox Geckodriver with add-on enabled in selenium java?

I'm trying to use a custom profile in Firefox with an add-on, I can open the profile, launch URL, I even see the add-on icon on top bar but is always set into the disabled mode, I need to set it to ...
10
votes
1answer
908 views

Is there a way to use Selenium 3 to automate testing in Safari 11 without the 'glass pane'?

According to the WebKit documentation for Safari 10: "When running a WebDriver test in Safari, test execution is confined to special Automation windows that are isolated from normal browsing ...
0
votes
4answers
52 views

Which is preferred in selenium automation using Java, writing tests by pages or functionality?

I am new to Selenium automation, in automating a web application which is preferred. Can we write scripts page by page or functionalities. How to identify that? if it’s page by page how we verify the ...
0
votes
0answers
68 views

authentication proxy with selenium C# 2020

This is an old problem but I can't resolve it. I created a chrome extension or Proxy auto auth.crx but it's too old. I used AutoIt but it has not resolved my problem. I saw the link Setting a proxy ...
-1
votes
2answers
24 views

Checking for changes after clicking element that redirects to a new page

Browser: Chrome I am testing that when you click on a button, it becomes disabled (account selection). However, my check does not get executed until after the new page loads. I assume this is part of ...
0
votes
1answer
55 views

File download verification with selenium and java

So I read all the other stackoverflow topics about this, none of the solutions worked for me so lets see if someone can help me. I need to verify a download (csv) from an export button in chrome(...
1
vote
2answers
1k views

How to use proxy with authentification in Selenium with Chrome WebDriver?

After hours of research I am still not able to use a proxy with authentification (username, password) in selenium using chrome WebDriver. Here is what I tried: using a chrome extension -> not ...
1
vote
2answers
45 views

Which runner to use with Specflow Cucumber BDD: Specflow Runner, Nunit, Xunit

I have a Specflow Selenium BDD automation solution in C# using Visual Studio and want to start scheduling some automation runs based on tags and possibly features. I've only used Nunit as a test ...

1
2 3 4 5
93