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
4
votes
4answers
78 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....
0
votes
0answers
70 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
1answer
44 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?
0
votes
2answers
80 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
votes
1answer
28 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
3answers
118 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 ...
1
vote
1answer
269 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)?
3
votes
1answer
179 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)...
3
votes
0answers
48 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 ...
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 ...
1
vote
0answers
21 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
1answer
181 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
3answers
493 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
1answer
35 views

TestNG: Go to the next test after one iteration of dataProvider

So I have two tests, one that check the sign up "test01_signIn", if it's a PASS, it goes to the the second test "test02_CheckNewsStandElements", which checks the visibility of an element of the ...
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
2answers
198 views

How to select values from dynamic drop down using selenium?

My code: from selenium import webdriver driver = webdriver.Chrome(executable_path="D:\\Work\\chromedriver.exe") driver.get("https://www.makemytrip.com/") print(driver.title) print(driver.current_url)...
0
votes
0answers
50 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
2answers
46 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?
0
votes
1answer
29 views

How to correctly update the Webelement List?

I'm in product catalogue in e-commerce store and I would like to choose one particular product with number "7000029644". On the displayed page, there are 8 products available, so I need to click the "...
2
votes
1answer
97 views

How to do right mouse click in protractor chrome?

After referring to: PROTRACTOR: Right click on link and open in NEW TAB I tried below code : describe('Right click', function () { it('test {Regression} {Sanity} {Sanity}', async ...
0
votes
1answer
40 views

OpenQA.selenium.support.ui.UnexpectedTagNameException: 'Element should have been “select” but was input'

For dropdown list I use the below code SelectElement select = new SelectElement(driver.FindElement(By.ClassName("select2-search__field"))); select.SelectByIndex(0); select.SelectByText("Checking0"); ...
1
vote
2answers
38 views

i found Null pointer exception while executing testng in selenium

package com.tng; import java.util.concurrent.TimeUnit; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.annotations.AfterMethod; import org....
2
votes
2answers
36 views

Help me please, how to upload file. File-input appended on click, but on click it opens OS native window

Can not upload a file. DOM elements: <button type="button" id="button-upload" data-loading-text="Loading..." class="btn btn-primary"><i class="fa fa-upload"></i> Upload</button&...
0
votes
1answer
815 views

failed: ModuleNotFoundError: No module named 'robot.parsing.populators' error

I was using python 3.6 for robot framework and selenium. As my client wants to upgrade to python 3.7.1 we did that. Now facing issue in running my automation scripts with the message as failed: ...
0
votes
1answer
39 views

Unable to locate element in search dialog box

I have opened a search dialog box with the help of robot class but now I am trying to enter the text in that search dialog box but it is not entering the text with help of robot keypress. The source ...
0
votes
1answer
37 views

How to ramp up and ramp down the test plan using selenium/WebDriver in JMeter

I am executing the test plan using selenium/webdriver sampler in JMeter using concurrency Thread Group. I want the real pacing of test plan means First I want to set the ramp-up for supposing 10 users ...
-1
votes
1answer
29 views

Any Load Testing Tool suggestion for the tests consists of Node.js using Selenium Web driver?

We have a number of web pages that support and have a matching set of automated tests for those pages. Each test consists of node.js, using selenium web driver, and generally, we target a Chrome ...
-1
votes
1answer
111 views

Test script failing due to “INTERNAL_SERVER_ERROR” , when I try to automate application. It run fine when test the same flow manually

I am using Java. I am trying to automate a scenario, where am trying to search all details of an ID, it works fine when I test the scenario manually. It fails when I automate the scenario. Note: I ...
0
votes
1answer
44 views

Automation testing for video chat web application upto 20 users?

I have a video conference web app for multiple users to login and chat . I want to automate below scenario by using selenium and Jmeter Scenario - test this application for max of 20 users login into ...
0
votes
1answer
31 views

How can i get an xpath or any other element for these drop downs, ? Select options or the (Sendkeys) works

How can I get an XPath or any other element for these dropdowns? Now for the first drop down with the value= 'Adrian Clarke,' I was able to get the Xpath and run it successfully. For the second drop-...
2
votes
1answer
52 views

How to make selenium to interact with Microstrategy?

I have to launch the MSTR page on the new tab, by clicking on the Report Details Web Element. I could not find the Inspect option on the right click menu that I want to click on the mstr page when I ...
0
votes
1answer
33 views

java.lang.NullPointerException on my POM project. I have my Page factories initialized and cant figure out the issue [duplicate]

I am getting the following error message in my IntelliJ The "TestBase.java:33" and "LoginPageTest.java25" essentially both point to the if(browserName.equals("chrome")) line of code in the base ...
0
votes
1answer
58 views

Rrror on running selenium python script - self._execute(self._execute(Command.SEND_KEYS_TO_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
1answer
259 views

Jmeter test plan is not running using chrome headless mode in jmeter

Further to the previous question Unable to execute the test plan using chrome driver headless mode in jmeter using selenium, I have added the explicit wait of 150 seconds and run the test plan with ...
0
votes
0answers
53 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
1answer
23 views

Jenkins Headless Chrome Causes Staleness Errors

After about a month of creating and ironing out my Selenium automated tests, I finally added it to a Jenkins pipeline. I didn't expect it to succeed on the first try, but I didn't expect to get errors ...
0
votes
1answer
32 views

Selenium, Cucumber. How to optimize the code for different objects and same actions?

I am very beginner with Selenium and I'd like to get an advice how to optimize the code. I have 3 tooltips on the website and want to do the same actions for all of them. I have written so far: ...
0
votes
1answer
18 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....
1
vote
1answer
196 views

How to open new tab using selenium C#?

Here is the code I have written But it is not working Any suggestion will be helpful IWebDriver driver = new ChromeDriver(@"C:\Selenium Automation\"); driver.Navigate().GoToUrl("https://...
1
vote
1answer
543 views

Unable to run the JMeter test plan on Ubuntu Server getting an error `NonGUIDriver java.lang.IllegalArgumentException`

I am executing the Jmeter test plan on Ubuntu Server but at the end left with an error saying: Error in NonGUIDriver java.lang.IllegalArgumentException: Problem loading XML from:'/opt/testScripts/...
1
vote
1answer
93 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
0answers
24 views

how to automate developers tools - console [duplicate]

How can we automate developer tools - console section using Selenium? how to get data from the console for a particular service call. ex: as per the screenshot attached I what to know a.fn.init[div#...
-1
votes
2answers
178 views

Selenium, Exception: $Proxy19 cannot be cast to org.openqa.selenium.By

I wanted to make use of WebDriverWait however I got this exception: "java.lang.ClassCastException: com.sun.proxy.$Proxy19 cannot be cast to org.openqa.selenium.By" It is caused by the 3rd line of ...
0
votes
1answer
30 views

How to get the Combined report of multiple threads when they are accessing the same URL

I am executing a test plan in which I have used two thread groups in which I have used multiple Selenium/WebDriver samples just for getting the URLs with the help of getCurrentUrl() function. In the ...
0
votes
0answers
50 views

NUnit - Get name of test fixture in OneTimeSetUp?

Is it possible to get the name of the test fixture in the OneTimeSetUp method? I can see how to get the currently executing test easily enough (TestContext.CurrentContext.Test.Name) but is there an ...
1
vote
2answers
119 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 ...
-1
votes
1answer
39 views

Efficient way to setup Jenkins for Automation Project

I have configured Jenkins server on windows computer. The systems has below configurations: OS : Windows 10 Processor : intel i3 processor RAM : 16GB 500GB hard disk The problem is recently the ...
-1
votes
1answer
36 views

Is there any course available online on designing ui automation framework using Selenium and Java?

Is there any good course available online that explains designing UI automation framework using Selenium and Java, integrating logging, reporting, etc. ? Maybe also talk about some best practices. ...
1
vote
0answers
45 views

How to get the AJAX request using the Selenium Webdriver in jmeter?

I am executing my selenium script using Selenium/WebDriver sampler and after the execution of multiple threads, the reporting is fine i.e. showing for each User and URL but I want to also show the ...
0
votes
0answers
25 views

Python - Selenium Webdriver and reCAPTCHA [duplicate]

I am developing a login validator in Python 3 using selenium webdriver. I have a CSV with 10 username and passwords that the program will validate. Now, the website on which I have to validate is ...

1 2 3
4
5
93