The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [selenium-webdriver]

Selenium-WebDriver provides the WebDriver API for controlling browsers in different programming languages ("language bindings"). When using this tag, also add a tag for the programming language you are using.

0
votes
1answer
10 views

Unable to click on 16th element from sub menu list

Because its lying beneath the page and when we scroll down, then we can see the elements, how to handle this kind of scenarios?
0
votes
0answers
26 views

Selenium testing errors

I have a script that follows the link, login (poppup window) and makes a screenshot. Use in combination in docker containers (standalone-chrome (chromedriver+selenium) and nightwatch). All tests work ...
0
votes
0answers
5 views

Why do we intialize webelement?

Why do we initalize web element using initelement method when we use @findBy annotation whereas in driver.findElement() we don't need to initialize? @FindBy(id="search") WebElement searchTextBox; ...
0
votes
0answers
13 views

assert selenium getAllSelectedOptions() using assertJ

I haven't been able to do this, so far able to use getFirstSelectedOption().getText() to assert selected item from multiple selection element. Is it possible to assert getAllSelectedOptions() getTex()...
0
votes
0answers
22 views

Weird issue: Running a Python script to automate a browser via Selenium webdriver and it requires manual intervention to continue?

I'm running a pretty basic python script to automate Chrome hitting Instagram (using Selenium Webdriver) and as of one hour ago, the process just stalls and waits upon running, and only progresses (as ...
0
votes
1answer
9 views

Webdriverio Error on Window10 basedir=$(dirname “$(echo ”$0“ | sed -e 's,\\,/,g')”) ^^^^^^^ SyntaxError: missing ) after argument list

When i try to run npm run then i got below error I am using below configuration : webdriverio v4.14.4 node v8.5 npm v5.3 Windows 10 below is my config file "scripts":{ "web": "node node_modules/....
0
votes
0answers
24 views

Error: stale element reference when retrieving value from HTML unordered list, using Splinter [duplicate]

I have a sample html object I am trying in interact with. My current objective is to retrieve the value of every li in the ul. I am currently loading the element with the sample code, but when I try ...
1
vote
0answers
24 views

Selenium webdriver files (Python) seem to be missing [duplicate]

I'm new to python programming so bear with me! I've recently downloaded Python 3.7.3 along with using pip to successfully install a number of add-on modules (including Numpy, Scipy, Matplotlib, ...
0
votes
1answer
15 views

Feature spec pass locally but fail on Circle CI

I have feature specs for my ActiveAdmin view. It works on my local machine. But when ran in CircleCi it fails with undefined method `text' for nil:NilClass spec it 'uses the update_at date when ...
0
votes
0answers
18 views

How to access list of text of child node of li element using selenium in c#

Having issues accessing the child node of a li element. Looking to print out all text within a list (which acts as a dropdown on the webpage). But all of the text is within an li element under an a> (...
2
votes
1answer
15 views

How to clear page Session Storage in Nightwatch

In order to test functionality of pop-up I needed to clear browser session storage. In this way the pop-up appears again. How can I clear the page Session Storage in Nightwatch?
-1
votes
1answer
17 views

How to fix “INFO:Detected dialect: OSS” in eclipse

I am kinda new to programming and I tried to execute the below code but chrome page is getting loaded but no execution happens and I am facing the below error. Starting ChromeDriver 72.0.3626.69 (...
-3
votes
0answers
11 views

how to check Pretty URL in selenium java

I am new to Selenium and java. Need to create simple method to for this scenario: steps: Go to page to check pretty url does it come up at the correct URL or do I get a 404 error?
2
votes
0answers
31 views

My question is about returning a value from promise block in protractor

I am unable to figure out how to send or i.e. return a value outside from a promise.Consider me a noob as i was working with selenium-java for the past few years so JS is something new for me and it ...
-1
votes
0answers
15 views

How to handle driver initialization for different browser types?

I am currently working on a framework where I require the webdriver to open any driver type namely ChromeDriver, FirefoxDriver etc. I have tried the following code, which seems to work fine. But I ...
1
vote
3answers
71 views

How to select element generated from JavaScript?

I am trying to select the Wireless button on the pop-up that is generated in the same window. It does not generate any iFrames and I cannot locate any elements inside this Wifi-Connect window. Anyone ...
0
votes
0answers
14 views

I want to create a json file/request and response process which will be used for user session creation and inject it at a Nightwatch.js script

The problem in SaaS applications automation testing is that I have to create and register new users each time, confirm their account by email and then purchase certain services in order to test a ...
0
votes
0answers
20 views

disable chrome extension for all users

Is there any way i can disable chrome extension for all users on system. Currently i am getting error when i run automated test via powershell script OpenQA.Selenium.WebDriverException : unknown ...
0
votes
1answer
31 views

Selenium: Unable to click a button of custom popup

I tried to click a button of select files then submit button in the popup but it neither recognizes the popup nor the button in it. For selecting the modal-content driver.switchTo().frame("modal-...
0
votes
0answers
22 views

Cannot find element by xpath using selenium-webdriver [duplicate]

I encouter a issue while trying to get some elements by xpath using selenium in python. I work on webpages similar to this one : https://warframe.market/items/mirage_prime_set I'm trying to get the ...
0
votes
1answer
33 views

Selenium: Unable to click a button which is found when done with find Element [duplicate]

I had tried to click a button tried with its id, CSS and XPath which is available through findElement but does not perform the action upon click. Here is the sample code and follows the exception as ...
0
votes
0answers
19 views

RegEx and Selenium

I need to gather different type of Phone numbers from page source (Ex : 811.975.4722 , 1800.975.8222 etc) But it is not wrapped in a uniquely identifiable element and looks like regular ...
1
vote
1answer
36 views

Selenium xPath text concatenation

I'm trying to find an element by it's text. However I'm facing a problem with concatenating two part of the "inner" text inside an element: <p> "Copied" "!" </p> If I'm trying: "//p[...
0
votes
1answer
26 views

Locate first element if it has multiple number of same text [duplicate]

I have 4 text with same name as 'HOD' and I want to click on first 'HOD'. I have tried all these: 1.//a[contains(text(),'HOD') ][1] 2.//a[@class="link_job ng-binding"][1] <ul type="none" class="...
0
votes
1answer
40 views

'Unable to create new session.' error using selenium-server-standalone-3.9.1.jar with ChromeDriver and Chrome

For the past few days, I was running tests using Selenium WebDriver with no issues. However, even though I didn't change anything in the code or my system, the last few times I tried to create a new ...
0
votes
1answer
17 views

I want to get a certain part of a google maps div, but it isn't showing up on selenium

I'm looking to access this div in selenium: <div jstcache="829" class="section-editorial-quote section-editorial-divider" jsan="t-6URMd4sqjIY,7.section-editorial-quote,7.section-editorial-divider,...
0
votes
0answers
9 views

org.openqa.selenium.interactions.MoveTargetOutOfBoundsException: Cannot click on element

Getting below exception error while running the code in IE browser. However same works fine Firefox and Chrome browser. Can someone help? I am trying to run the below code in IE browser and trying to ...
2
votes
1answer
42 views

Python Selenium ().text returns “’” instead of apostrophe (')

I am trying to collect the comments on Seeking Alpha (for example: https://seekingalpha.com/article/4243835-teslas-low-2019-capex-harm-growth-story-brand-value). I list one of the comments that I ...
-1
votes
2answers
36 views

why does time.sleep() not working inside the loop

i have a code where i am trying to import the data from excel workbook to a link. however the below code throws the error when loop is executed for the first time from selenium import webdriver from ...
0
votes
0answers
14 views

Multithreaded Python PyQT GUI App With Selenium WebDriver - How to ensure Webdriver close on application exit?

I am still new to python and VERY new to implementing a GUI and multithreading, I have written a small application that uses selenium to collect data from and interact with a website, this part works ...
1
vote
1answer
29 views

Maximum Recursion Error with Selenium's driver.get() call

I am using selenium to running automated scripts in Python. I have used the tool for three years, but have never encountered this issue. Does anyone know what could be causing this? I was able to ...
-3
votes
0answers
20 views

How to select the rating for a content using Selenium Webdriver [on hold]

I want to create a program that selects only 3-star movies or more from this site. I used the webdriver to open the page but I don't know how to pick up the film's rating and use it. The site: https:/...
0
votes
1answer
24 views

Finding a string on a javascript based website and innitiate click

I'm trying to find a picture on a javascript based website and click on it. Below you can see the code I have tried, but always getting error, the website can only be opened via Internet Explorer, no ...
2
votes
1answer
31 views

Why do I receive lots of ConnectionResetErrors with chromedriver?

When running tests on a django site using selenium and chromedriver, I receive lots of ConnectionResetErrors. The full error output is included at the bottom. Note that tests pass fine even so - the ...
-1
votes
0answers
14 views

Parallel execution of chrome browser through XML

I am doing parallel execution in Chrome browser from XML and it is launching multiple Chrome browsers. The GET URL is working only for first Chrome browser as I declare webdriver public static ...
0
votes
2answers
41 views

How can I use the same chromedriver in multiple stepDefPages for multiple scenarios and without restarting my driver?

I want to do test on my application, so first scenario is the authentification, once done, i need to make test on the next page which is the home page, so how can i use the same driver without ...
0
votes
0answers
8 views

Getting error while trying to switch to new winhandle

I have code that switch to new window frame and do the task. But in some cases it is not able to perfrom the task after switching to new windowframe.The is working in other machine but not in my ...
0
votes
0answers
21 views

Download file using selenium and headless chrome in python

I need to download a file from a site, as an example using the thinkbroadband site. Have found multiple posts about this but none of the solutions seem to work. Am using chrome v73. Using this from ...
0
votes
0answers
22 views

JAVA - Selenium WebDriver - Assertions and Waits

I am having a problem with my Assertion, or rather with the "time" the assertion is being executed. So, the assertion is working as it should, however, it is going too fast, as it is executing without ...
0
votes
1answer
19 views

SessionNotCreatedException: Unable to find a matching set of capabilities using SeleniumGrid with GeckoDriver Firefox through Java

Below code I written to open www.google.com under selenium standalone Grid environment. During the execution it shows error CONFIGURATION: OS: WINDOWS 10 BROWSER : FireFox (66.0.3) Selenium ...
0
votes
1answer
26 views

Null pointer Exception with Page Factory

I was doing some coding to learn PageFactory, but I am getting this error when trying to call a method in another class using page factory Below is my Elements class: package pulse.pom.tpr; ...
1
vote
1answer
71 views

Selenium switchTo return error org.openqa.selenium.WebDriverException: unknown error: cannot determine loading status

I have scenario to click hyperlink, and will open new tab (active window will move to new tab after click hyperlink) When i try to move to webdriver to new tab using switchTo() method, then followed ...
0
votes
1answer
29 views

Full screen mode is not working in selenium chromedriver headless mode

For example, I need to check is full screen is enabled or not after clicking the "Full Screen" icon in youtube. When we run the script in UI, we can check with using of executing this "document....
1
vote
0answers
33 views

How to quit selenium chrome driver when the driver is not selected? [duplicate]

I wrote some code in python using selenium and multiprocessing to parallelize data collection. I am collecting some data from YouTube. I have a method which initiates a chrome webdriver. I used ...
0
votes
1answer
18 views

I inspect element using Firefox IDE with css but when try access it using same at my code not work

HTML: <input name="txtAnswer" class="box1" id="txtAnswer" type="text" maxlength="20"> Element can be selected using Firefox IDE: css=tr:nth-child(2) > td > table > tbody > tr:nth-...
0
votes
3answers
43 views

Python selenium | How to fetch all the drop down list values using index , Complex drop down structure

I'm using python selenium, I want to fetch all the values from the drop-down which displays in the main screen, Drop down values are dynamic based on another dropdown selection I have tried the ...
0
votes
0answers
44 views

Hover on element and click for other element when visible in selenium

I have an asset container when hovered over it displays the other elements for Download and Detail view Icons. So now I am trying to use mouseMove() on the asset Container but still it does not ...
0
votes
0answers
35 views

Flaws in the Page Object Model? [on hold]

I read this article about flaws in the Page Object Model/POM, authored by a lady at ThoughtWorks - https://blog.getgauge.io/are-page-objects-anti-pattern-21b6e337880f She says that POM leads to ...
0
votes
1answer
33 views

How do I Assert if statement which contains

I have value which in if statement contains equals but still it fails the test. please help to locate issue in the script. I need if (383797)contains ($ 383,797) Test should pass // Database ...
0
votes
1answer
28 views

Automating WhatsApp using selenium and python

I am made this simple whatsapp bot using python and selenium. from selenium import webdriver driver = webdriver.Chrome() driver.get('https://web.whatsapp.com/') target = "Someone" msg = "Something" ...