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
1answer
87 views

How to get WebDriver Instance(Object) from Hooks(@Before) for parallel executions of scenarios

I want to get WebDriver Instance(Object) from the Hooks Class in @Before Annotation setup() method. And I want to do it in such a way that I am able to run my scenarios in parallel. I know what are ...
0
votes
1answer
101 views

Selenium thinks button is clickable even when disabled

I'm having an issue where Selenium is saying a button is clickable even when it's disabled. I'm using Selenium with a website where you have to select a date first and then time slot from a dropdown ...
0
votes
1answer
31 views

How do I write a better xpath of this element? [duplicate]

I am working on a project and building automation test suite for a webpage. A certain part of the webpage looks like this. The corresponding HTML is as follows: <p class="customer-service&...
0
votes
0answers
76 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
2answers
96 views

Why does Google Chrome initiated through Selenium shows less attributes for anchor tags compared to normal Chrome session?

I'm trying to scrape some image href attributes from the <a> tags from a Google search using Selenium, ChromeDriver and Chrome. When the url is accessed manually I'm able to locate the required ...
0
votes
2answers
35 views

UI amounts and conversions to numbers/strings

I have a number of UI-visible amounts which I am comparing with what I have prepared as a part ot my test cases - randomized&mocked test amounts are doubles. What is the usual best practice? ...
0
votes
0answers
56 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
1answer
268 views

Need help for passing arraylist in dataprovider

I am taking values from excel and than saving values in String type. Created object array and passed those values. added Object array to ArrayList. When using it as dataprovider it is giving me erros. ...
0
votes
1answer
37 views

Page Object - direct driver.findElement on exact xpath vs. chaining locator via a wrapper

I have a Page Object with two ways of finding the same DOM element: First there's a wrapper for finding the parent transactionsTable, then on this wrapper I call another findElement with the rest of ...
0
votes
1answer
63 views

Can Robot Framework framework iterate over example data?

The BDD sample below is written using Katalon Studio Scenario Outline: Verify Price of <plan> Plan Given <accountType> account is currently logged in When User navigates to Publish ...
0
votes
1answer
111 views

Page object implementation for Winapp Driver

I am using Winapp Driver to control a windows desktop application using java. The automation runs fine but I am looking for a way to implement the Page object model. This is what I am using at the ...
0
votes
1answer
44 views

java.lang.NullPointerException in Page object Model

I have created this program using TestNG and i'm getting this error java.lan*g.NullPointerException I have initialized the Webelement .But still i'm getting error POM.java package TestPOM; import java....
0
votes
0answers
31 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 ...
-1
votes
1answer
236 views

How to configure path for file download in python-selenium

I have changed the path of file download from using below code. chromeOptions=Options() chromeOptions.add_experimental_option("prefs", {"download.default_directory": r"C:\...
0
votes
1answer
112 views

Get most recent downloaded file using python-Selenium

My Python-Selenium script is downloading the particular file but the file is taking long time to start and get completed downloaded. It starts after clicking in 25/30 seconds and completed in 50/55/60 ...
1
vote
1answer
43 views

Selenium WebDriver - Unable to identify if radio option is selected or not - contains pseudo elements

I am having hard time with identifying if radio option No is selected or not using Selenium Java. Below is the screenshot of the radio options on the web page. A workable solution is much appreciated. ...
-3
votes
1answer
44 views

Why do we create parameterized constructor in every PageObject class which accepts one driver reference when BaseTest has a global driver object? [duplicate]

When every test class will inherit driver, then why should we create constructor that takes driver object? public class BaseTest{ public static Webdriver driver = new ChromeDriver(); } public class ...
0
votes
1answer
43 views

I want to enter text in search text box and click search icon or enter [duplicate]

I am facing the issue . Kindly assist. The HTML Code snippet is attached I am getting the error as Exception in thread "main" org.openqa.selenium.NoSuchElementException: no such element: ...
0
votes
0answers
23 views

Electron Application toolbar automation using selenium python

Is it possible to automate the tool bar options like File. Edit, View , Window and Help options using Selenium webdriver with python?
0
votes
1answer
58 views

File upload button is not clickable with selenium webdriver

data-ng-disabled="disableUpload" How to work with such attribute? I will elaborate more on this, I want to upload a file by clicking on the + icon near add file button, but the below code ...
0
votes
0answers
26 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
2answers
495 views

I'm getting Exception in thread “main” org.openqa.selenium.ElementNotInteractableException: element not interactable

I want to perform XSS by entering something like <script> alert (Testing)</script> into text fields. On my page, I have a combination of different types of form fields. The condition I ...
0
votes
0answers
20 views

The Element is not Attached to the DOM error is displayed when I try to get the text from a list of Web elements after applying a filter [duplicate]

What I want to do is to access a web page that has some elements displayed in a grid and some buttons that implement the filtering functionality. The problem is that when I get the list of elements ...
0
votes
2answers
41 views

Trouble logging on to a website with selenium web driver

I'm fairly new to developing but I'm having a problem logging into a website. The code I have currently typed in the username, password, and correctly clicks the log in button. However, the page ...
-1
votes
1answer
74 views

Selenium/Linux throws exception “An unknown exception was encountered sending an HTTP request to the remote WebDriver server for URL ”

I am trying to port some Selenium-Tests that I developed under windows (my main platform) to Linux (Ubuntu 19.10 in a VM). I must admit, I'm not too familiar with the environment, so I might be ...
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 ...
-1
votes
1answer
42 views

until method is not present in class WebDriverWait in Selenium showing complie error

WebDriverWait wait = new WebDriverWait(driver, 1000); WebElement element = wait.until(ExpectedConditions.elementToBeClickable(ExcelFileReader.findElement(xpath))); import org.openqa.selenium.support....
0
votes
0answers
78 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 ...
1
vote
1answer
398 views

Find Text without span Text - Python - Selenium

I want to get text that is stored on an element. Text is not a property instead when I expand Element (in chrome's inspection [DevTools]) it has two sub-properties, span and text. it looks something ...
-1
votes
2answers
183 views

How to get incremental xpath for newly added rows in webtable using robot framework-python-selenium

I came across a certain requirement. There is a web table where new rows are added daily.I want to write an automation script in Robot Framework-Python-Selenium-Eclipse-RedEditor Plugin. Right now, I ...
0
votes
1answer
110 views

Find childs of element without sub-childs - Python - Selenium

I'm trying to create a bot. The functionality I need now is to find a way to get only childs of an element without sub-childs. Take this as example: <Body> <child1>Hi</child1> ...
0
votes
2answers
42 views

Asserting against database during selenium test run

Just wanted to hear some thoughts about asserting against the database during a selenium test suite. For the website I am working on is a SPA with API backend where the majority of the service ...
0
votes
0answers
17 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 ...
1
vote
1answer
65 views

How to load multiple chrome extensions in Chrome browser using Selenium java?

I got the below code to open Chrome browser using Selenium with extension enabled. To enable multiple chrome extensions, do I need to repeat the steps or is there any simpler way? String ...
0
votes
0answers
13 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
1answer
75 views

Not able to get all values from a table with selenium chrome webdriver using python [duplicate]

I want to know the way to collect all the information from a table from a web page. At the moment I am able to get only the records which are visible in UI. (18 rows). However there are 96 rows in ...
1
vote
3answers
94 views

How can I get the value from span class in selenium?

In the code above, how would I get the span class value (238.67) to show up? What would I exactly use?
0
votes
1answer
33 views

How can I handle ElementNotInteractableException without using ExpectedConditions (because it was retired)?

I found an answer here (How can I handle ElementNotInteractableException?) I'm sure was highly effective. However now in C# It seems like the ExpectedConditions Class has been retired and is no ...
-1
votes
3answers
64 views

Question regarding Webdriver driver = new ChromeDriver() methods

Question When we are using WebDriver driver = new ChromeDriver(); driver object will show methods of only WebDriver interface or ChromeDriver methods plus extra methods created in RC, Chromium or ...
1
vote
0answers
39 views

Automate Microsoft’s authentication needing a certificate using selenium in a pipeline?

I am trying to run some scripts in a website using webdriverio, this site uses Microsoft’s login authentication in order to access the website, in my local it usually asks me to login not only with ...
0
votes
0answers
38 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
95 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
17 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
2answers
59 views

WebdriverIO, IE11 window launches but errors in terminal: Request failed due to no such window, Currently focused window has been closed

I am pretty new to WDIO and javascript, but am trying to get WebdriverIO v6 working with IE11. This is important since we make software for the medical industry who only seem to use IE11 despite it ...
0
votes
1answer
142 views

unable to run program via eclipse

I am getting error whenever running java program via selenium. my code : package mTash; import java.util.concurrent.TimeUnit; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome....
3
votes
1answer
84 views

How to log *everything* in Selenium/WebDriver/ChromeDriver

I am struggling with this stale-element-exception. Now I had the idea that I could perhaps maximize the logging in order to get a closer look on what's actually happening. I am instantiating the ...
0
votes
2answers
240 views

Implementing array elements in Selenium IDE

I tried to print the array elements in the text box the command is as follows while sending the values of vehicles to iterator so that I can further enter the values as ${KEY_ENTER}with the array ...
0
votes
0answers
21 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 ...
1
vote
1answer
198 views

WARNING: Passing multiple tags through @CucumberOptions is deprecated. Please use a single tag expressions?

I tried to run a Cucumber test with multiple tags. But got this error. I am using Cucumber version 5.7.0. How can i run multiple tags now? import org.junit.runner.RunWith; import io.cucumber....
3
votes
1answer
114 views

How draw a straight line in canvas using protractor

Context: I want to test a signature canvas field So i want to draw a signature and then validate that signature is displayed on the canvas. Right now i cannot even draw a proper line , so wanted to ...

1 2
3
4 5
93