Questions tagged [selenium-webdriver]

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

438 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
27 views

Kotlin Selenium lateinit List of WebElements not being initialized

I'm building a selenium test using a POM, and I have a List of Webelements (companyNames in SelectAccountPage) that keeps throwing a UninitializedPropertyAccessException. Here's the Page Object class ...
0
votes
0answers
12 views

Need to run single test case parallel in simultaneously manner

I'm running one test with 60 different data sets coming from a data provider. My testing XML file is printed below where I'm executing my test in parallel. My problem is that after executing my first ...
0
votes
0answers
9 views

How can I check the error in the incoming alert message in Android mobile test?

I'm running an Android mobile test with C#. The transaction I want to do is a linked transaction and I want to have it checked. After I press the Continue button, I get an alert message. I want to ...
0
votes
0answers
33 views

RSA Soft Token Automation

Can we automate RSA Soft Token to achieve end to end automation. I have automated using Input Simulator by simulating the keyboard events. It is working fine when we run the scripts on local machine, ...
0
votes
0answers
21 views

.perform() not working with Cataline safari 13.1

I want to move the cursor on xpath element given below so that I can validate the colour changes but I am getting below error : org.openqa.selenium.interactions.MoveTargetOutOfBoundsException: ...
0
votes
1answer
27 views

In the screen how to navigate to the row which contains the text that needs to be Edited and then click on Edit button.Can some one pls guide.NeedHelp

In the screen how to navigate to the row which contains the text that needs to be Edited and then click on Edit button. Scenario: I have a screen where I need to find the row which has the value as &...
0
votes
0answers
47 views

Retrieving cookies from a file in selenium webdriver

This is the code which I am using for the retrieve the cookies while logging to the system. In this code shows error as "The constructor Boolean(String) is deprecated since version 9" and ...
0
votes
0answers
21 views

How to choose a result in a dynamic webtable that has the same name and later timing in Selenium Python?

I have been working on a Selenium project in Python where I want to choose the result which has a later timing than the earlier one but have trouble implementing it. What I meant is this, Example if ...
0
votes
0answers
28 views

(C#) Selenium How do I choose an option within a ComboBox?

How do I select the "Acknowleg " option of my ComboBox "Acknowleg Type"? I tried the following code: var test = new SelectElement(_driver.FindElement(By.Name("Activity Type&...
0
votes
0answers
32 views

Unsatisfied link error exception while fetching data from sql

The following code is to fetch otp from SQL to the frontend import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql....
0
votes
0answers
27 views

Moving test environments to AWS cloud

I'm new here and this is my first post. Currently we are doing manual testing within a local closed environment. Our Ops team is working on building an AWS environment using VPC, RDS for the DB's etc. ...
0
votes
0answers
17 views

How to scroll current whole screen with UI Automator

I can scroll until get the specified text by the following code driver.find_element_by_android_uiautomator( 'new UiScrollable(new UiSelector().scrollable(true).instance(0)).getChildByText(new ...
0
votes
0answers
25 views

Selenium ide Java generated code does not scroll

I am trying to automate a test suite by using selenium IDE, the idea its to generate the tests with the IDE and then export them to a java/jUnit format. The problem its that the the tests generated in ...
0
votes
0answers
412 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 ...
0
votes
0answers
47 views

Click does not work in Selenium - Java

I have faced a critical problem in my work. I have passed 2 days but can not solve it. I have used several options but not working in automation but working in manual processes. I know I am wrong but ...
0
votes
0answers
31 views

Cannot choose and click specific value in the table

Whatever companyCode I specify in the method it always chooses 3M Canada. Before it worked perfectly but after a few days it stopped even if I didn't do any changed in the code. The XPATH of the table ...
0
votes
0answers
27 views

How to click all link text in web using selenium_Python

I'm newbie in python.Now i'm try to create automatic workflow for download all account bank-statements using selenium-python.I have 4 accounts. Like this: This's my sample code: from selenium import ...
0
votes
0answers
47 views

Unable to view the docker selenium script execution on VNC Viwer

I have a selenium script as below: public class firstclass { public static void main(String[] args) throws MalformedURLException { new DesiredCapabilities(); DesiredCapabilities cap = ...
0
votes
0answers
202 views

Selenium: How to switch to tab without focusing?

I'm using the Java Selenium and Chrome webdriver on Windows 10. I like to have a GUI up for debugging purposes, but my code keeps bringing the browser into focus. Specifically, lines like driver....
0
votes
0answers
118 views

After using BrowserMob proxy to manipulate HTTP Header unable to access WebElements

Below code works fine in launching the browser using the header request value passed through BrowserMob. However after the login has been completed using the requestvalue passed. I am unable to run ...
0
votes
0answers
115 views

Do we need to run WinAppDriver server explicitly on the remote server where Jenkins will run my automation?

As i am very new and doing POC for my project, I am wondering how can i make sure that WinAppDriver server should run before my Automation test in remote server using Jenkins. Or is it not required to ...
0
votes
0answers
57 views

Iframe not visible while running tests through Docker (Ubuntu Base Image)

I am having issues with IFrame element not visible on Chrome running on headless mode while running tests through Docker Containers based of the Ubuntu OS. Exact same test code is running fine on the ...
0
votes
0answers
159 views

How to fix invalid session id when creating AWS Remote Driver on Desktop browser testing

I am a newbie in AWS device farm. I am trying to execute automation test on Desktop browser testing project. I have done aws configure to create credentials and write code as below but got error. ...
0
votes
0answers
31 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="...
0
votes
0answers
35 views

How to execute test cases after ide crashed

Kindly suggest if I have 100 test cases after executing 40 Test Cases my IDE was crashed. So, on the next time when I am restarting my Test Cases again the execution should be start from 41 to 100. I ...
0
votes
0answers
16 views

Executing cucumber feature file in eclipse

I have installed cucumber plugin on eclipse 2019-09 but the console doesn't show anything after I run the feature file. I have created Maven project in eclipse and created one package for testrunner ...
0
votes
0answers
89 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
0answers
855 views

Not able to run my test from testng.xml file

I'm not able to run by test case from testng.xml file after run of file I'm getting that Total tests run: 0, Failures: 0, Skips: 0 but if I will try to run the test class directly then test will run. ...
0
votes
0answers
26 views

How to use setUp in selenium?

I want to use setUp instead of setUpClass in my selenium tests. This code works fine and is able to get the correct host when using setUpClass: @tag('selenium') @override_settings(ALLOWED_HOSTS=['*']) ...
0
votes
0answers
76 views

downloaded pdf file in internal Shared storage in mobile android device

Here after downloading a file in chromebrowser in mobile I'm trying to check that filename is present in Internal shared storage downloads folder in mobile but it is showing null exception. How to ...
0
votes
0answers
84 views

Selenium drop down menu can't locate 11th element

Trying to scrape data from https://www.sgx.com/research-education/securities and the code below works but only for the first 10 iterations after which it throws a NoSuchElement Exception. Starting ...
0
votes
0answers
197 views

[[TestNGClassFinder]] Unable to read methods on class

[[TestNGClassFinder]] Unable to read methods on class package.CreateCustomer - unable to resolve class reference org/openqa/selenium/WebDriver I have created a testNG program and run the program using ...
0
votes
0answers
73 views

Good way to run Selenium Tests on Azure Devops

We have 5 different env that i want to run my selenium tests against, the tests are configured and will be ran at the end of the release, what is the best approach for this, should we use Selenium ...
0
votes
0answers
67 views

How to write/insert (Embed) the image object into the excel in Selenium WebDriver (POI Jar ) using Java Programming language?

I want to insert (Embed) the image object into the excel file using poi jar. In Excel, we can able to do manually shown in the below screenshot. Similarly, I want to insert an image object through the ...
0
votes
0answers
15 views

Running two tests gives me confusion @ the protocol-level

I'm dealing with a stale-element-issue. Have now found a partial the explanation for the problem - but I don't fully understand it yet! Hopefully one of you has an idea... Due to a very stupid bug on ...
0
votes
0answers
217 views

Selenium with ChromeDriver not saving login cookies

In the test that I'm running using Selenium on Python, I simply create a new driver instance like so: options.add_argument("user-data-dir=cookies") # enables cookies ...
0
votes
0answers
24 views

How to handle excel - multiple sheet integration with ODBC driver in C#

I am having one issue in fetching data from excel sheet where I have 4 sheets in one excel file and all sheets have one same unique Key value Issue I am facing is that - I want to fetch data from all ...
0
votes
0answers
17 views

Getting more wait time when running the selenium script in selenoid

In our application we have implemented selenoid for parallel execution purpose. Now we are facing a compatibility issue when running the scripts via selenoid. We are getting more wait time in a ...
0
votes
0answers
130 views

getting error :: 'TestLogin' object has no attribute 'driver'

Below is code of my framework for testing which I am building, but I am getting the error 'TestLogin' object has no attribute 'driver'. Confest.py code: import pytest from selenium import webdriver ...
0
votes
0answers
262 views

Unable to run script through eclipse

when first installed eclipse, the code ran but after script is showing error when running. Snippet : package demo; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome....
0
votes
0answers
21 views

Testing with select2 dropdown

Hi I am pretty new to select a select2 dropdown using Rselenium. (Normal select dropdown is ok but when it comes to AngularJS framework I have been struggling a lot.) The field I want to click for ...
0
votes
0answers
22 views

“NoSuchElementException” is thrown even if the element is present and loaded properly

I have a code that checks for an element first before proceeding with taking a screenshot of the page, it won't stop the run but it will throw a runtime exception if the element is not found. At first ...
0
votes
0answers
215 views

How can we use the “TableTransfomer” Method to read data from “DataTable” in Cucumber?

I am stuck with using a TableTransfomer Class to convert Datatable into desired domain object. I am following some examples from the web, but have completely messed up my code. I just want Cucumber ...
0
votes
0answers
24 views

I have handled alert in selenium java it is working fine . When i run local but while azure pipeline execution this alert is not handled shows error

I have handled alert in selenium java it is working fine . When i run local but while azure pipeline execution this alert is not handled shows error ... TimeoutException:Expected condition is failed :...
0
votes
0answers
96 views

Get the locator from IWebElement

I'm doing the following: var locators = new ByChained(By.XPath("//div[@id='historyModal']//div[@class='modal-body']", By.ClassName("historyItem")); var historyValues = WebDriver.FindElements(locators)...
0
votes
0answers
70 views

What is your setup for running nightly automated web driver tests

There seem to be three predominant setups for running automated tests. The company invested in a selenium grid that is always available and the nightly tests run against them. The CI will build a ...
0
votes
0answers
22 views

Not able to select value from the select list and grid in oracle apex application

Hi I am trying to automate my oracle apex based web application but i am not able to select any value from the select list where i want to select customers as well as from the grid from which i select ...
0
votes
0answers
20 views

How to get data from PDF from URL having authentication using selenium?

I need to automate this flow where a PDF will be opened when i use the URL and enter the authentication. This flow has to be automated using Selenium. I tried PDFbox API but it works only for URL ...
0
votes
0answers
22 views

Need help with AutoIT script created to handle browser authentication pop up

I have written below AutoIT script to handle the browser auth window as below. I have parameterized script to get the uname & pwd from command line. With this parameterized script during ...
0
votes
1answer
189 views

Error when running a script

I'm new to selenium. I installed all the required Jars, but at the end when I run the script to see if it works, I got an error message. Please help. Code: import org.openqa.selenium.WebDriver; ...

1
3 4
5
6 7
9