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
0answers
5 views

no such element: Unable to locate element {“method”:“css selector”,“selector”:“#billing_state_field .select2-arrow”}

org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"css selector","selector":"#billing_state_field .select2-arrow"} (Session info: chrome=75.0.3770.100) ...
0
votes
0answers
4 views

Debugging selenium project inside visual studio

In my visual studio solution i have several console project, one asp.net mvc webapplication and now i have added class library project for Selenium. I have written some tests using Selenium webdriver ...
-2
votes
0answers
13 views

How to identify different modal windows on a page using Selenium in Python?

I would like to identify a modal window with the text "New Message" in some way. I would imagine the code as below: self.assertEqual("Nová zpráva", EC.text_to_be_present_in_element(By.XPATH,"/html/...
0
votes
0answers
12 views

unable to set data in excel using apache POI in data driven framework

I was unable to set data in excel using poi i do have an set data reuse method in my excel util class getting an null pointer exception initially it written data into excel now its showing null ...
0
votes
0answers
28 views

is there a way to locate items with selenium at OWA?

I'm trying to automate Outlook webmail app, to check my email account and start looking for emails with special words in the subject and brings them to inbox or other and maybe reply. I have already ...
0
votes
0answers
21 views

Any headless browser for selenium in android?

My question is related to my recent post About using Selenium in my first android app Is there's a browser that open headless like phantomjs in pc so i can get a screenshot of a captcha from a ...
0
votes
0answers
10 views

selenium.common.exceptions.WebDriverException: Message: in python 3.7

I am trying to login into the WSJ website using selenium. I am stuck at the step where it clicks on the Sign In. botton_to_click = WebDriverWait(browser, 10).until(EC.element_to_be_clickable((By.ID, "...
1
vote
1answer
28 views

What is the correct syntax checking the .readyState of a website in Selenium Python?

I'm trying to check the .readyState of a website using .execute_script but I keep getting an error. I'm using a pageLoadStrategy of "none" in chromedriver so I'm trying to test that the websites ...
0
votes
1answer
24 views

how to loop pages using beautiful soup 4 and python and selenium?

I'm Fairly new to Python and using beautiful soup first time though I have some experience with selenium. I am trying to scrape a website ("http://cbseaff.nic.in/cbse_aff/schdir_Report/userview.aspx" )...
0
votes
1answer
24 views

Errors with Selenium and Python and Using Chrome Driver

I am trying to use selenium and python using chromedriver, but I can't seem to get past a string of errors. I've troubleshooted using just about everything. Any help would be greatly appreciated! ...
0
votes
1answer
12 views

Webdriver firefox: does not support xpath with name()

Webdriver firefox: does not support xpath with name(). For example, WebElement element = ...; element.findElement(By.xpath(".//*[name()='button' or name()='input']")); This works fine for chrome and ...
0
votes
1answer
13 views

webdriver edge: dispatchEvent for input element not working

webdriver edge: dispatchEvent for input element not working: For example, set a hidden input value, then trigger change event: ((JavascriptExecutor)driver).executeScript( "...
0
votes
0answers
11 views

when do you need to use click an element in Selenium WebDriver using JavaScript? [on hold]

i meet few elements that i needed to click on them using java script, i would like to know what are the terms to use such click? when you need to use such click? because why the regular click of ...
-2
votes
1answer
25 views

How do I go to a web page and take screenshot of the entire page with Python? [on hold]

I am trying to go to a webpage such as www.yahoo.com. The page is really long and I want to capture a screenshot of the entire page (i.e. not just the current browser frame view) with selenium. Prefer ...
0
votes
1answer
27 views

Executing page scripts before retrieving it's contents

I've a page where i need to automate some tasks and scrap some data, but the page runs some JS after loading to inject some data into the DOM; that i cannot intercept (not in a good format anyway), I ...
0
votes
0answers
38 views

How to setup Selenium tests properly

I want to create a project for testing purpose and I am looking for the best approach. First of all, I want to have a maven project with spring-boot, selenium, and JUnit5. I want to have flow like ...
0
votes
1answer
12 views

Maven Compilation error when running mvn test command in cmd

When i am using mvn complie it is giving me build success but when i am using mvn test i am getting compiler failure. 1) I have added mvn compiler dependencies in pom xml 2) changed the value in ...
0
votes
1answer
20 views

Cucumber Java with Selenium - Reuse and concat Login feature with other features

I have a doubt with the use of a login feature. What I look for: I have a Login feature that should be used with all the rest of future features that I'm using with Cucumber and Selenium. This Login ...
0
votes
0answers
24 views

The table GUI data on UI is not changing (frequently) but still getting StaleElementReferenceException on Python Selenium

I have seen many posts and feedback as well about similar problems. But unable to find any thread similar to my case. StaleElementReferenceException on Python Selenium http://allselenium.info/handle-...
1
vote
1answer
32 views

By.className(“classname”) and By.cssSelector(“[class = 'classname']”) returns different number of elements in selenium

I am learning Selenium and came across an issue where I see that By.cssSelector("[class = 'day']") and By.className("day") are returning different number of elements even though both are the same. I ...
0
votes
1answer
25 views

Why does 'executeAsyncScript (window.setTimeout (5000))' function in Java for selenium is holding the next function to execute after 5 seconds?

I want to use an async function call to run few scripts asynchronously but I am not able to achieve it using javaScriprtExecutor‘s executeAsyncScript() function. Here is a small snippet for your ...
0
votes
1answer
24 views

Navigating nested un-named iframes with selenium webdriver switchTo()

I have a .jsp page that I'm trying to grab the web elements from and perform click and input functions upon. After trial and error of trying to identify these web elements on the jsp page, I noticed ...
0
votes
2answers
37 views

remove/change a specific element class attribute value using selenium

I have a problem based on a similar question that has an answer but does not fit for me. I have an element that is not set up like this class="vote-link up" where it would be easy to make the class to ...
1
vote
1answer
24 views

Getting exception java.lang.ClassNotFoundException: org.openqa.selenium.MutableCapabilities when launching browser through Selenium

I'm getting the above exception when IntelliJ tries to launch the Chrome browser. I am running this code on Ubuntu 16.04 and I have already tried updating the browser and using the specific jars for ...
2
votes
1answer
63 views

Selenium standalone in docker compose - killed by OS?

I am running an application using docker-compose. One of the containers is a selenium/standalone-chrome image. I give is shm_size of 2g. The application works fine when there is no high load. ...
0
votes
0answers
6 views

Throws “System.Resources.MissingSatelliteAssemblyException” error while executing the video recording code

While executing the video recording code using selenium c# it throws "System.Resources.MissingSatelliteAssemblyException" error. I just tried to reinstall the "Microsoft.Expression.Enoder". But ...
0
votes
1answer
20 views

selenium webdriver for java API: findElement produces different results

I am using selenium webdriver for java to crawl this page: https://www.immowelt.at/liste/wien/wohnungen/mieten?sort=relevanz In my code the method WebElement.findElement(...) produces different ...
0
votes
0answers
18 views

Not able to reach end of page in GOIBIBO using infinite scroll

city name city_name="Goa" # trip dates year="2019" start_month="06" start_date="21" end_month="06" end_date="23" start_total=year+start_month+start_date # combine the start date end_total=year+...
0
votes
0answers
18 views

geckodriver not opening firefox after publish in iis

I Publish my asp.net website in the server 2012. When i Click on Button to open selenium Firefox Browser this is not worked. Gecko Driver exist in my task manager List However, the Worked Very Fast in ...
0
votes
1answer
37 views

:driver_opts is deprecated. Use :service with an instance of Selenium::WebDriver::Service instead

2019-06-19 15:44:43 WARN Selenium [DEPRECATION] :driver_opts is deprecated. Use :service with an instance of Selenium::WebDriver::Service instead. Screenshot error, but continue to execute. wrong ...
1
vote
0answers
20 views

OpenQA.Selenium.WebDriverException: 'Cannot start the driver service on http://localhost:60623/'

Following code worked well in the past. After some days, I try to run it again but it throws such error. using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using OpenQA.Selenium.Support.UI; public ...
0
votes
2answers
35 views

python selenium unable to locate child element

I'm writing a program to iterate through elements on a webpage. I start the browser like so: self.browser = webdriver.Chrome(executable_path="C:/Users/me/chromedriver.exe") self.browser.get("https:/...
0
votes
1answer
28 views

Stale element exception when using Java streams with selenium webdriver

I am learning Selenium and I am trying out an exercise where I have to select a particular date in a Calendar. I am first collecting all the Web Elements filtered out by classname in a list and then I ...
0
votes
1answer
30 views

Is there a way to wait until all the data has been written to a csv file in selenium (nodejs) before exiting the test?

So I am trying to write some data from a table to csv file. It does work most of the times, but sometimes it only writes few of the data to the file and exists the test. So I was wondering if there is ...
-1
votes
2answers
45 views

How to use an array for a method within a loop

I am using a list of URLs within a loop for a test in Selenium. For each specific URL I want to define separate strings for a reusable method I'm calling within the test. They all have to be different ...
0
votes
2answers
26 views

How to find web element in nested xml by using xpath

I'm trying to click an element on menu in an e-commerce web-site by using xpath but i'm not able to find it. I directly tried to reach it by the following one but it didn't work. driver.findElement(...
1
vote
0answers
25 views

Selenium IE11 Alert pop up handle does not work for close browser popup

Issue: I am using IE11 with Selenium Webdriver, When I try to close the IE browser, I get a "Message From WebPage" popup display, I am trying to click "OK" but Alert handle does not work, It doesn't ...
0
votes
1answer
26 views

How can i navigate through pagination using selenium python?

I am working on website automation and I want to navigate through different pages and problem is that the website is developed using Angular I think. The Pagination part is having a js function also ...
0
votes
0answers
19 views

How to launch application under test for every test case without creating the new session for winappdriver

I am automating a windows application in Java using winappdriver where I have three test cases and each test needs to launch the application. I am using below code to initialize the driver and launch ...
0
votes
1answer
26 views

Xpath for Multiple table td element

There is a webtable in which I need to select from 1st row only 2nd 3rd and 4th column. I have tried using AND operator to select multiple td but that xpath is not working. Xpath for 1st row ...
1
vote
2answers
18 views

Python-3.x-Selenium: Changing the used driver while staying logged in on a website

I'm currently testing a website with python-selenium and it works pretty well so far. I'm using webdriver.Firefox() because it makes the devolepment process much easier if you can see what the testing ...
0
votes
1answer
27 views

How to capture network traffic with selenium

I'm starting a new Django project, I'm trying to capture the network traffic with Selenium. I have already achieved this objective with Selenium-wire (MITM Proxy), but Django doesn't like to work ...
-1
votes
0answers
15 views

Slack: can I track the last message in the slack

I want to write some funny code, for add the few emoji to latest message in slack channel. Is it possible to track the last message there?
0
votes
0answers
6 views

unable to execute chrome driver on jenkins using maven [duplicate]

i have installed chrome driver plugin in jenkins but unable to execute the chrome driver MVN Test is Started I am reading the chrome driver from target classes. but am getting the below error. "...
1
vote
1answer
12 views

Transform cookie expiry value in readable format

I would ask you guys, I am writing test for checking expiry date for a chosen site. If is possible that someone help me in solving following: Have value expiry from cookie and is: 1561291056 ...
-1
votes
0answers
13 views

How to scrape dynamic web content using Selenium with Python?

https://www.linkedin.com/learning/topics/business I want to extract dynamic content from web page using Selenium. Output: Quick windows tip,sap-business-one-essential-training driver = ...
0
votes
0answers
8 views

when webdriver can’t find elem,Failed to establish a new connection [duplicate]

when i use WebDriverWait and can't find the elem,it reminds me urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fde08091f98>: Failed to establish a new ...
-1
votes
0answers
9 views

After few test cases of execution, Safari browser will stop interacting and stop loading the URL itself [on hold]

Problem - After few test cases of execution, Safari browser will stop interacting and stop loading the URL itself. Here I have around 170 test cases, where i need to run on safari. When i am trying ...
1
vote
1answer
25 views

Can we show/hide selenium browser on demand [duplicate]

I know we can create headless browser. But my question here is can we make it switch between Visible and Invisible mode. So if i want to show something i do something like: driver.Visible=true; ...
0
votes
1answer
12 views

Import UI test scripts into SeleniumIDE?

I'm introducing Selenium UI testing to our company. For performance and flexibility reasons we, from the technical team, prefer to develop these with code. Our CTO insists that we use SeleniumIDE, ...