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
238 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 ...
0
votes
0answers
230 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
2k 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
630 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 ...
1
vote
1answer
958 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
87 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 ...
2
votes
1answer
401 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
1answer
385 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
3k 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?
1
vote
1answer
72 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
145 views

Question regarding Webdriver driver = new ChromeDriver() methods [closed]

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
63 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
156 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
288 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
23 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 ...
1
vote
2answers
188 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 ...
1
vote
1answer
331 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
428 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
944 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 ...
1
vote
2answers
1k 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
297 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
4answers
196 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
1answer
169 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?
1
vote
1answer
271 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
85 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
577 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
2k 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
365 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
64 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 ...
7
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
1k 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
2k 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 ...
1
vote
1answer
84 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
974 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)...
1
vote
2answers
72 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
52 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
317 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
77 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
101 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
42 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
3k 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: ...
1
vote
1answer
67 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
110 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
49 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
133 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
150 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 ...
1
vote
1answer
42 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-...

1
5 6
7
8 9
96