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
0answers
11 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
6 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 ...
-2
votes
0answers
22 views

Run Selenium Automation kick start from webpage? [closed]

Am also looking for a solution can you please help me 0 i Developed a Automation Selenium java program to non IT support guys where they need to simply update the data file with required input data ...
-2
votes
0answers
29 views

Python BBD - features, scenario, tests are skipped

I've got a problem writing my test. Seems like behave skipping my tests and only running what is inside environment.py (getting webdriver and quiting). My .feature file: Feature: steps Scenario: ...
0
votes
2answers
12 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
23 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....
2
votes
1answer
41 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
1answer
26 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
16 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
1answer
23 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
44 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 ...
4
votes
3answers
60 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
23 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
32 views

Problem with Selenium testing with Python [closed]

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
1answer
14 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
22 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
22 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
59 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
14 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)?
2
votes
1answer
47 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)...
2
votes
0answers
36 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 ...
-1
votes
0answers
19 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
1answer
33 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
90 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
19 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
22 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
80 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
17 views

Understanding how to handle auto-complete using Selenium and Cucumber

There are solutions and suggestions given for Python , Java etc... But didn't find any related to cucumberJs If anyone can give an idea of how to click on that AutoGenerated Popup comprising of bank ...
0
votes
0answers
19 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
27 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
24 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
19 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 function () { ...
0
votes
1answer
25 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
1answer
23 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
29 views

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

Can not upload 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
94 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
26 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
17 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
25 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
40 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
34 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
25 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
31 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
26 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
21 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
31 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
39 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
17 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 ...

1
2 3 4 5
90