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
2 answers
42 views

can we test GUI and a network protocol (SNMP) using selenium?

I have to test a website using Selenium. This website is a graphical user interface for controlling a device and to shows data from that device. This device is using SNMP which is used to give an ...
user avatar
  • 11
-1 votes
0 answers
12 views

How to use arrays while automating dynamic webtables?

I can write program to print total number of rows/columns and data present in each cells of dynamic Webtable. But how to use arrays while automating dynamic webtables? I am using Selenium tool with ...
user avatar
0 votes
0 answers
27 views

SwitchTo method in WebDriver Interface

In the WebDriver interface(Javadoc) we have method SwitchTo and its type is WebDriver.TargetLocator, but when clicked on WebDriver.TargetLocator interface, in that interface SwitchTo method is not ...
user avatar
0 votes
3 answers
41 views

Is there a way to record a video of my Selenium automation with Python?

I'd like to have video recordings of the Selenium automation at work. And then delete the recording when the tests pass. This way whenever the tests fail we can quickly replay the video to see what ...
user avatar
  • 390
-1 votes
0 answers
9 views

Anyone Worked on exporting HAR file using CDP/Selenium or Selenium Bidi API? [closed]

Did anyone work on exporting the HAR files using CDP/Selenium or Selenium Bidi API?
user avatar
0 votes
0 answers
15 views

How to handle elements inside JavaScript function? There is no elements\xpath..but in UI we login

I have a scenario where when I click the login button, it opens a display (with email & password). But when I try to inspect those text boxes, it shows me the below code. How can I sendkeys to ...
user avatar
  • 1
0 votes
1 answer
23 views

How to make the WebDriverWait.Until() method to NOT whitelist the NoSuchElementException

I am using the WebDriverWait.Until() method in my script to wait for an element to disappear from the UI. For this, there is the ExpectedConditions class and I could have used its ...
user avatar
0 votes
2 answers
28 views

GUI for end-to-end tests

I'm helping an organization that has a website with some moderate-level complexity, past the point of just a bunch of static web pages but not to the point where they have a developer on staff. To ...
user avatar
  • 111
0 votes
1 answer
20 views

Can we write a part of a test with Selenium IDE and the other part with WebDriver and combine the two into one test?

I am new to selenium and am wondering if we can combine both Selenium IDE and WebDriver and write one test. What I mean to ask is, can we use Selenium IDE for the easy tasks that we want to test and ...
user avatar
  • 11
0 votes
1 answer
24 views

Button element found but click() action not performed

I am trying to verify close button using selenium java page object model. Close button is located in a pop up window. Below is the html code for the button. <div class="...
user avatar
0 votes
1 answer
34 views

JMeter + Webdriver : Java code is not taking screenshot and it is giving ERROR c.g.j.p.w.s.WebDriverSampler: Sourced file: inline evaluation of:

I am new to JMeter + WebDriver + Java. Javascript code is working as expected for screenshot. Due to recent upgrade of Java, we are moving from js to Java Below is the code. Can you please help on it ...
user avatar
  • 1
0 votes
0 answers
3 views

In Mac Os Selenium With ROBOT framework is not capturing screenshot of web page.Taking only Mac home page.I am Using 4.1.3 Selenium Maven ,testNG

Robot robot = new Robot(); Rectangle screenRect = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()); BufferedImage screenShot = robot.createScreenCapture(new Rectangle(Toolkit....
user avatar
0 votes
1 answer
53 views

Compilation stuck at find element by xpath without giving any error

I'm trying to automate a project using selenium page object model. Below is the html code <div class="type-1 overflow-hidden card"><div class="col-xl-8 offset-xl-2">&...
user avatar
-2 votes
1 answer
33 views

Which can be better in automation framework designing for an organisation, Python or Java? [closed]

I want to start automation testing with selenium webdriver(need to design the framework for the same), so which would be better to start with Java or Python ?
user avatar
-1 votes
0 answers
18 views

How to handle dynamic dropdown in python selenium

1.2(0)-ARCHIVED 6.12.9-build.32676(1)...
user avatar
0 votes
0 answers
42 views

Appium 8.0.0 - Can't locate elements with accessibilityId - StackOverflowError

Using Appium 8.0.0 + selenium java 4.1.3 + java 11.0.4 running tests on remote appium node connected to selenium grid 4 ( in standalone mode ) using appium automationName UiAutomator2 following code ...
user avatar
0 votes
0 answers
3 views

How to run Testproject.io cloud script on command prompt offline

How can I run testproject.io cloud script which I have downloaded on my local PC as YAML file on the Command prompt? What are the basic settings for fetching YAML file in the command prompt?
user avatar
-1 votes
2 answers
27 views

How can I close Registration pop up of ecommerce site? [closed]

I am automating this e-commerce website: www.woodenstreet.com Once the home page is loaded completely, a Registration pop up will come up on the screen after 5-10 seconds. How can I close this ...
user avatar
0 votes
0 answers
25 views

Selenium controlled Chrome and Edge can't both access webcams

I am using Selenium 4 in java to control Chrome and Edge and other browsers in order to test a video call app. I have a test where I'm starting up 2 different browsers at once in order to get them to ...
user avatar
0 votes
0 answers
12 views

Making Webpage headless is causing issue with finding WebElement through Xpath

I had to make chrome browser headless after which when I try to see the html code by executing below lines ChromeOptions options = new ChromeOptions(); options.addArguments("--headless"); ...
user avatar
0 votes
0 answers
9 views

Unable to click anchor tag in grid again after navigating to another page

In the gridview I click the anchor tag in column KU_Total Qty following which I navigate to Grid in another page. WebElement totalQty = ldriver.findElement(By.xpath("//td[@aria-describedby='...
user avatar
0 votes
0 answers
11 views

Selenium Webdriver with DevExpress-DevExtreme MultiSelect dropdown crashing blazer app

So I'm currently writing automation tests on a blazer app which uses DevExpress-DevExtreme MultiSelects (testing in a chrome browser). See here for a similar working example (Data Grid not TreeView): ...
user avatar
0 votes
1 answer
63 views

XPath contains(text(), 'string') does not work, but partialLinkText('sameString') works

I'm trying to learn Selenium on Java, can't for the life of me figure out why xpath contain can't find the right element. Here's the whole case: @Test public void test1_FluentWait() { driver.get(&...
user avatar
  • 3
-2 votes
1 answer
13 views

log steps of the tests in Ide Intelij

Is it possible to log steps of the tests that are being executed in the Intelij console??? could someone let me know? some command or plugin that I must install to visualize the steps while I run my ...
user avatar
-1 votes
3 answers
63 views

Not able to select value from drop down menu

https://demo.guru99.com/test/newtours/register.php I was trying to automate the drop down country menu on this page but am unable to select any value from the drop down. Eclipse is throwing the ...
user avatar
  • 1
0 votes
1 answer
38 views

Problem finding element with text when the text contains &nbsb;

I have the following element in the DOM: <div id="sourceListDiv"> <select id="sourceList" onkeydown="uil.handleKeyDown(this)" size="15" ondblclick=&...
user avatar
0 votes
0 answers
54 views

How to display the number of pages in Pagination WebTable using Selenium Webdriver

I wan to display the number of pages in count in Pagination WebTable using FOR Loop, please find the code of FOR Loop condition. But not able to display the total number count of pages. When clicking ...
user avatar
0 votes
0 answers
14 views

Access drop down with class in RobotFramework

I am using RobotFramework. How can I access the drop down with a class? Because I don't have the list name.
user avatar
0 votes
0 answers
25 views

send_keys() command don't work on python selenium

import time from tkinter.tix import ButtonBox from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.keys import Keys from ...
user avatar
0 votes
0 answers
27 views

Selenium, print function

I don't know why print is not displayed in the console. It does not show the error either, it says that everything went well. find_element doesn't work either, but time_sleep and quit works. import ...
user avatar
0 votes
0 answers
16 views

How to select date from PickerWheel on browser UI similar to iOS style using Selenium Java

I am trying to select start and end dates from PickerWheel on the browser. But click and select methods are not working. Because to select date we need to move like in iOS devices date picker wheel. I ...
user avatar
  • 1
0 votes
0 answers
82 views

how to load chrome profile with Selenium

So I am trying to write a test in which the first step is logging in, but it is denying me access as it detected automation tools because the javascript has not been enabled and there is no profile. ...
user avatar
0 votes
1 answer
110 views

Xpath to an anchor returning error: unable to locate element

I am new to automated testing. I am using C#, Selenium and Chrome 99 with the correct driver. I am trying to get to an anchor tag on the page. Here is my code that is not working, driver.Url = "...
user avatar
0 votes
0 answers
26 views

Not able to see web element when I navigate to page using Automation

I have a web page which displays a new contact creation button. When I try to navigate to a page through automation, I can not see that button. When I login to site manually and navigate to same page, ...
user avatar
0 votes
1 answer
65 views

Locate xpath of an element visible only on hover

I am doing automation on the following :- The comments you see(<!---->) , changes when I hover over the INFY(in green on the left) (See one of the comment changes to <span class = "...
user avatar
-1 votes
1 answer
21 views

How to return more than one isDisplayed results inside a single method?

I am trying to create a single method to return some boolean values that check whether some of the elements are visible on a webpage. In that case, I am getting an "unreachable statement" ...
user avatar
0 votes
0 answers
17 views

How do I capture only one screenshot when I run an Automation Test on mobile also on website at the same time?

How do I capture only one screenshot when I run an Automation Test on mobile also on website at the same time? in java with selenium and attacted it to allure report : @Override public void ...
user avatar
2 votes
2 answers
160 views

Selenium + Java: Unable to close Advertisement in webpage

Issue I am facing: After this step: driver.findElement(By.linkText("New Customer")).click(); an advertisement window opens and script stops here. I'm unable to close the advertisement and ...
user avatar
2 votes
2 answers
53 views

Can tests written in Visual Studio / Selenium / Nunit be made available to non technical QA folks?

We have a few QA folks that do not code. I am writing test cases in VS and was asked if there is a way to make them available to them. Maybe an .exe that lists all the test scenarios and they can ...
user avatar
-1 votes
2 answers
38 views

How to automatically test mobile device and desktop website connections?

We know that Appium can be used to test mobile device applications. We know that Selenium can be used to test PC desktop websites. We want to know how to test the connections between mobile apps and ...
user avatar
-1 votes
1 answer
126 views

I am not able to ctrl +click on feature file in Cucumber step definition, definition not found error

Help Me I have installed Cucumber and Natural but my feature file is not getting highlighted after clicking ctrl+ click. Also, it has highlighted with yellow color While running Test Runner, it says ...
user avatar
2 votes
1 answer
39 views

How to wait for either element on different pages without violating Single Responsibility Principle

I have some code that currently sits in my Steps class (I am using Cucumber BDD). DriverExtensions.WaitForEitherElement(BasePage.getDriver(), this.page1.uniqueLocator(), this.page2....
user avatar
0 votes
1 answer
83 views

Explicit wait doesn't work with selenium python

I am learning selenum with python and the explicit wait method doesn't work to click on the 'accept cookies' button. Otherwise, the time.sleep method work and I would like to understant why the ...
user avatar
  • 1
1 vote
2 answers
221 views

Get a specific text value from an HTML table using python and selenium

CROSS-POSTED here: https://stackoverflow.com/questions/71003815/get-a-specific-text-value-from-an-html-table-using-python-and-selenium This website (https://egov.uscis.gov/processing-times/) shows the ...
user avatar
0 votes
2 answers
33 views

How to find xpath of "BBB element in following example?

I am unable to find xpath of "BBB" in following span class example. <span class="xyz"> "AAA" "BBB" "CCC" ==$0 </span>
user avatar
  • 1
0 votes
3 answers
449 views

Selenium - How to remove &nbsp from my text value

I am trying to use this xpath to find the number of elements that have a value between X and Y. The problem I am facing is since there is &nbsp in the HTML, and the code doesn't detect the text ...
user avatar
  • 1
0 votes
2 answers
67 views

How to execute multiple selenium java test-scripts with different parameter at one time?

Is there any solutions for executing multiple selenium webdriver java test-scripts having different parameters at one time and get results. If parameter is URLs, then we can test multiple Urls on one ...
user avatar
0 votes
3 answers
37 views

Selenium - invalid selector ui-sref

I have the following link, and I wish to click it using Selenium, <a data-toggle="tooltip" data-placement="middle" title="Nuova Richiesta" ui-sref="showRda({...
user avatar
-1 votes
1 answer
25 views

Automating a DOB text field GURU 99 Banking Application

New here and need some advice if you would be so kind. So I am getting the hang of automation testing and am attempting to automate the registration process by providing an excel CSV and have the ...
user avatar
  • 1
0 votes
0 answers
193 views

How to close the advertisement using selenium?

#creating path os.environ['PATH'] += r"C://Users/USER/Workspace" #go to the website driver = webdriver.Chrome() driver.get(currenturls) driver.implicitly_wait(20) from bs4 import ...
user avatar
  • 1

1
2 3 4 5
98