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
1
vote
2answers
61 views

Strange drop down automation problem - multiple select

I've tried for days to figure this one out. I have a selector that I can't figure out. It seems to be a regular select statement with multiple options but when clicking one option directly it ...
3
votes
1answer
31 views

Is it possible to do load testing with Selenium with many instances of cloud-based virtual machines?

I'm not a QA guy, so I apologies if some of this may sound dumb or far-fetched. Suppose we have a simple Selenium script where the tool queries a website's search field and records the response time....
1
vote
2answers
52 views

Unable to click on “Add Payment Method” button on Google Pay site

I am trying to click on "Add payment method" button under Payment Methods tab using selenium - https://pay.google.com/gp/w/home/paymentmethods Tried using xpath, className and cssSelector but looks ...
0
votes
1answer
16 views

Element draged but not droped in destnation

//drag. WebElement From=driver.findElement(By.xpath("//div[@id='settings']//div[2]")); Thread.sleep(3000); // drop. WebElement To=driver.findElement(By....
3
votes
3answers
35k 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....
16
votes
8answers
79k views

Can I use Selenium to do Desktop Application testing?

Is it possible to test desktop applications using selenium? Suppose we have a simple application like gtalk. A desktop application, can we automate that application with selenium.
0
votes
3answers
882 views

Chromedriver quit() method doesn't close all chrome.exe processes

When I am trying to close the chrome browser using driver.quit() and driver.close(), browser is getting closed but chromedriver.exe process is not getting closed. How can we remove these processes ...
2
votes
1answer
43 views

Selenium Click not working on IE11 using c#

Local Machine: Dell Latitude (i7-8650U CPU @ 1.90GHz 2.11 GHz) with 16.0 GB RAM Operating System: Windows 10 Pro (64-bit) v1909 Display Scale and Layout: 100% Running on Visual Studio 2017 (v 15.9.21)...
0
votes
1answer
25 views

Problem with Selenium testing with Python

I am working on automating a website test using Selenium this website is dynamic so i can't use class names/ID's and names checking the HTML code i noticed there was only a class name so i looked into ...
0
votes
0answers
19 views

How can we use the “TableTransfomer” Class 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
1answer
13 views

Appium :Click on capture image button of inbuilt camera in mobile app. is it possible?

Appium(Android) :Click on capture image button of inbuilt camera in mobile app. is it possible?
2
votes
4answers
17k views

How to identify the web-element for a Text Box using Selenium for the dynamically changing ID

I have a input text box having id property and the HTML for it as shown below username:<input type="text" id="1234"><br> Id property is dynamically changing. when the page loads next ...
0
votes
2answers
19 views

How to open browser windows one by one with Jmeter selenium

I was using jmeter with jp@gc - WebDriver Sampler plugin on Chrome driver. When I set thread count to 100 it will open 100 browsers. Is there any way to open the browser 1 after another? Below is ...
1
vote
1answer
18 views

Rrror on running selenium python script - self._execute(Command.CLICK_ELEMENT)

I am using selenium with python and I try to click on element below. But every time shows the error (in starting was working) only getting error on this line and have tried CSS selector id and all. ...
0
votes
2answers
46 views

Switching to another window if inside inner frame

If I am inside a inner frame and there is button if I click on that button a new window will open. Will it be possible to switch to newly open window doing driver.switchTo().defaultContent(). ?
0
votes
3answers
3k views

Getting an error TypeError: describe is not a function

I started creating a base test case using Mocha and Selenium Webriver. I get the following error when I try and run > mocha test TypeError: describe is not a function at Object.<anonymous> ...
-1
votes
1answer
21 views

What does it mean to instantiate Webdriver in Selenium? [closed]

WebDriver driver = new ChromeDriver(); Now, when we "instantiate" Webdriver and create a reference variable and then assign the object returned to it, then does it mean that we have a new Chrome ...
0
votes
1answer
133 views

Firefox throws an error message through WebDriverManager

Firefox is mostly working, but the last test case failed - it won't click on an element. unable to read VR Path Registry is the error message. In Internet Explorer, it loads the browser, sometimes ...
0
votes
3answers
56 views

What is the purpose of creating a BaseTest class which declares a global static WebDriver object in POM framework?

I am a newbie in Selenium Automation. I don't understand the concept of creating a "BaseTest" class which has one static Webdriver. I always get confused on this concept and end up creating multiple ...
0
votes
1answer
156 views

How to keep a count on number of clicks on a file

I want to move the file downloaded on first click to folder 1 and move the file downloaded on second click to folder 2 using java. How it can be achieved using Java. Can somebody help me ? for (...
0
votes
1answer
133 views

Methods to setup parallel test execution in NUnit with Selenium WebDriver C#

For true parallel execution of Selenium tests in NUnit, does the setup of the webdriver object need to be within the test method itself? Or is there a better way? Previously, for parallel execution ...
1
vote
1answer
12 views

Appium(Android Mobile) : Click button using X Y coordinate(if can't find ID or Xpath)?

Appium(Android Mobile) : Click button using X Y coordinate(if can't find ID or Xpath)?
0
votes
1answer
210 views

How can I enable variations in Chrome from chromedriver options?

How can I enable variations in Chrome from chromedriver options? Hello, I'm facing a problem with Chrome where when I run an automated UI test with chromedriver, there's issues showing up (such as ...
0
votes
2answers
261 views

Python Selenium code is not able to double click on a webelement when multiple tests are run together but works when tests are run individually

Posting the code snippet for abc in self.driver.find_elements_by_xpath( "//div[@class='ag-body-viewport']//div[starts-with(@class,'ag-row')]"): ...
1
vote
3answers
1k 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();" ...
0
votes
2answers
437 views

How to maximize browser window irrespective of windows versions

I have some scripts which are running on Firefox browser. Here the problem was I am using driver.manage().window().maximize(); code to maximize the browser. It is perfectly working fine with Windows 7 ...
2
votes
1answer
104 views

Scrape items from an HTML list

When Catalog receives a fragment for a book category, it seems to my eyes, to be just list items. For space, I didn't include that output. How can I ensure that only categories which belong to the ...
-1
votes
0answers
19 views

“No Definition found” error [closed]

I am getting error No Definition found while creating a feature file in selenium using Cucumber.
6
votes
5answers
2k views

Is Cypress set to replace Selenium as the preferred tool for automating web applications? [closed]

I see many articles pointing out the effectiveness of Cypress as against Selenium for automating web applications. From most of the articles I've read, I see some points for Cypress such as: Cypress ...
0
votes
2answers
964 views

How to deal with parent and child iframes

I have a sceanrio where I 1st iframe (i.e parent iframe) which has one button on it and clicking on it another iframe gets open (child iframe). I am able to switch to Parent iframe but when I click on ...
7
votes
3answers
5k views

How to get max character count for input fields with selenium webdriver

How to get the maximum allowed character in any text box eg.user name, email address, in selenium webdriver ?
2
votes
2answers
64 views

How should data and application state be handled in UI automation

I have two big concerns about UI automation. If I am creating a data record as part of my test and verifying the creation, should I also delete the data in the same test? If yes what if the creation ...
1
vote
2answers
921 views

Unable to find element with xpath within nested framesets

I'm using driver.findElement(By.xpath("//a[@title='A K T İ V A S Y O N']")); to locate the element given below in the screenshots but getting Unable to find element error. There are nested classes ...
1
vote
1answer
689 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 ...
3
votes
2answers
447 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
3k 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 ...
3
votes
2answers
73 views

Are there any automation tools which have a feature to first check (as a pre-request) for Internet connection up or down before script execution?

It was accidental but it's a required feature for most of the modern automation tools. Yesterday I made one automation script job on a remote machine and it will be supposed to run on schedule time ...
2
votes
0answers
35 views

How to find frame to given WebElement?

I am writing a Selenium testcase for a webpage which has multiple frames and WebElements. My goal is to get a specific WebElement by xpath without knowing anything about the iframes before starting ...
1
vote
0answers
20 views

Who are the most popular Selenium Automation experts and advocates? [closed]

I am a newbie in Selenium WebDriver and have started my journey of learning the tools. I wanted to follow blogs/articles/tutorials of most famous and expert Automation engineers who work primarily on ...
0
votes
2answers
139 views

What is the correct way writing e2e tests?

I have a task do create e2e for a web app, but I don't know what is the correct way doing it. For example: In app there is a possibility to add new employee, so the scenario is as described: Login ...
-1
votes
0answers
18 views

I'm getting while trying to fetch result from database: Cannot inject @Test annotated Method [testDB] with [class java.lang.Object]

package com.debyt.database; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql....
0
votes
3answers
3k 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
30 views

Element <div class=“gQzdc _3sdhb”> is not reachable by keyboard

I'm trying to scrap WhatsApp using python selenium. I'm trying to find name by locating the search box and typing the name over there. But I'm getting error as Message: Element <div class="gQzdc ...
0
votes
1answer
58 views

Getting “testng.xml is not a valid file” error in Jenkins

I’m getting the following error when trying to run a Selenium/TestNg test from Jenkins. [ERROR] Suite file /development/apps/config/jenkins/jobs/teste-automatizado/workspace/Abc/testng.xml is not a ...
0
votes
3answers
85 views

Why is WebDriver instance declared static in Page Object model structure in Selenium?

I am a complete newbie in Selenium and java in general. I am trying to use the Page object model with Page factory to create Page object class for the Login page of an application. I am reading lot of ...
0
votes
2answers
26 views

How to verify a dropdown which is an extended web element is disabled in selenium

I have a dropdown which is disabled and I have to verify the same. How can I do it with an assert statement or any other method?

1
2 3 4 5
90