Newest 'selenium' Questions - Stack Overflow

Questions tagged [selenium]

Selenium is a popular open-source tool for automating web browsers. When using this tag, also include other tags for the specific components you are using, e.g. selenium-webdriver for the language bindings, selenium-ide, selenium-grid, etc.

0
votes
0answers
5 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 ...
0
votes
1answer
18 views

Python Selenium: can't figure out xpath of clickable link element in span tag

I'm using selenium python 3 and have tried but need assistance finding clickable link element xpath. My last attempt at xpath show 1 of 1 match but still can't pull element: elem_available=browser....
1
vote
1answer
15 views

Search for a string in a dynamic table using selenium

I have a dynamic table with one column/field titled 'reference IDs'. The table is dynamic, however the column isn't. I want to grab all the reference IDs as strings. Below is a snippet of the cell ...
0
votes
2answers
19 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
2answers
28 views

Extracting the xpath from the given anchor tag

How to get the xpath to extract the title from this html line. Not got anything useful because cssClass can change with time so the code may break. I think that since href and text in this tag are ...
0
votes
1answer
28 views

how does one move from one side of the slider bar to the other with selenium?

I am webscraping https://www.rogers.com/web/totes/wireless/build-plan and as you click on the phone and go to the page that contains the different permutations of plans you can move the slider to ...
0
votes
0answers
18 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
vote
2answers
16 views

How to select time in dropdown of datepicker (Selenium & Python)

I want the script to select a specific time on the start time drop down. I am using Selenium Chromedriver with Python for https://www.sailbox.ch/de/bootliste . I managed to open the drop down of the ...
1
vote
1answer
25 views

I have a button that im trying to click with selenium however there are more css selectors than buttons

I am trying to click on the 'details' button on https://www.rogers.com/web/totes/wireless/choose-phone. However it seems as though I cant click it. The page seems to be dynamic and so the link does ...
0
votes
0answers
12 views

How to authenticate proxy using HtmlUnit driver?

I'm using Selenium in order to scrape a website, and want to send my requests through a proxy. How do I authenticate requests to the proxy server using HtmlUnit driver? I've successfully ...
0
votes
0answers
13 views

Safari (12.1) Webdriver hard crash on Selenium click() and actions.clickAndHold([some web element]).perform()

When I'm running my selenium scripts, I will get a hard crash when I run the Safari web browser if I click certain links. For most click actions the Safari Webdriver is fine, but if I preform a ...
0
votes
0answers
8 views

Cannot find findelementbyandroiduiautomator method for appium android driver

I am using android driver with mobileElement typecast, but I cannot find the findelementbyandroiduiautomator method in my list of methods. All the other methods are not inspecting any elements on my ...
0
votes
2answers
20 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
13 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
0answers
19 views

How to merge repeated columns to get multiple lines instead of multiple columns or comma-separated data into a single cell?

I'm scraping data from a javascript environment and want to get as output a preset of columns that have multiple lines filled with the values that I get from data scraping. How to correlate a value ...
-2
votes
1answer
14 views

Assert home page title

How to assert text "ka" is present in home page title? String name=element.getText(); Assert.assertTrue(name.contains("ka")); Does my above code work?
0
votes
1answer
13 views

how to use expectedExceptionsMessageRegExp inside test method

I would like to use assert exception type and message in testng @test , where my requirement is to pass the expected message from outside data source which looks not easy to passing as parameter with @...
1
vote
2answers
48 views

Variable from a for loop not showing in another loop

I've been practicing webscraping with the nba.com playerlist, but I've ran into a problem where a link that I scraped in one for loop does not appear when I call on it in another for loop. I have ...
0
votes
1answer
23 views

Selenium chromedriver doesn't execute a onclick event

I'm developing a bot to web scrap some info from a specific website. In this website, we need to fill a dynamic form with: Health Plan (Select); State Address (Select) City Address (A dynamic select ...
0
votes
1answer
18 views

Click on link using Partial Link Text Selenium IDE

Im trying to click on a link in gmail that is automated, so the first part of the text is the same, having "confirm.php" while the rest of it is just random numbers "i=111760960|111760961|111760962|...
0
votes
1answer
31 views

How can i extract data from a chart selenium python

I want to know how can I extract data from a chart using selenium python. I want to extract data from this web. I'm using python. I want to extract all the point that are in the chart. Thanks. I have ...
0
votes
1answer
14 views

cucumber jvm report screenshot attachment link is confused

I've embedding several screenshots of various states of UI. The screenshots are attached however, the link to view the attachments are confused and opening another attachment on the report. For eg. '...
0
votes
1answer
19 views

Need Selenium to return the class title content of given HTML

Using Selenium to perform some webscraping. Have it log in to a site, where an HTML table of data is returned with five values at a time. I'm going to have Selenium scrape a particular bit of data off ...
0
votes
2answers
20 views

Click at menu using accessibility id and xpath error

I'm trying to click on this menu, but I'm not picking up, there always appears an error message to the driver that the element is not interactive, I've tried with xpath, class Name and accessibility ...
0
votes
1answer
22 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
15 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
0answers
12 views

How to properly store (in csv) and retrieve html retrieved using selenium to be displayed in srcdoc of an iframe

I have a csv file with one url per row. I create a dataframe using this csv, then loop over it. For each url, I use selenium to get the page source (I use selenium because I want the javascript code ...
0
votes
0answers
10 views

selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities with Firefox 67.0.3 through Selenium [duplicate]

I am unable to run my python program that requires me to use selenium because I keep getting an error. Apparently, the version of Selenium I have does not match with any of the versions of my web ...
0
votes
0answers
21 views

Robotframework: Javascript replace string not working

I'm writing some Robotframework tests and I need to redirect to a different url in case AB test is up. I tried by using builtin and selenium but I find myself more comfortable by using JS, and here ...
0
votes
1answer
23 views

How to get requests of an Element tag using Selenium

How to get request of a element by using selenium. public void TestFlightSubmit(){ driver.findElement(By.className("primaryBtn font24 latoBlack widgetSearchBtn")); } Is there any way so ...
-2
votes
0answers
18 views

Protractor : WebDriverError element not interactable Error [duplicate]

I am Facing issue related to protractor webdriver . i have installed same version of protractor and webdriver on my two machines. in my one machine right click is performing successfully but in my ...
0
votes
0answers
22 views

Re Run Feature file instead of scenario?

I am working on a cucumber java framework, We have build our test cases using feature files. I have a task to implement the re run functionality in the framework. We have created the test cases ...
1
vote
3answers
36 views

Selenium - Text Property only becomes available after debugger inspection

I'm fighting with unexpected behaviour in a Selenium-based Python 3 web scraper and want to understand what's going on: I'm parsing sites with job offerings. After the initial search I get 1 to n ...
0
votes
1answer
41 views

How to download file using selenium webdriver from a third website

I am automating a process wherein I should be able to login to a website and download and rename the files automatically. It should download only the csv files which are ending with '06'. It should ...
0
votes
1answer
26 views

want to pass assertions for deleting

I want to assert the webtable whenever i delete or edit the row in webtable.To assert insertion i used assert size1==size-1, for deleting am trying d same with decrement op..but its failing def ...
0
votes
0answers
16 views

Redirection URL changes when running script on Google Cloud [duplicate]

I am running a headless selenium script which pings a redirected URL twice (first time to get cookies, second time to get to the final URL). My aim is to run the script on a list of links and get each ...
1
vote
3answers
44 views

Best way to summarize many consecutive if(x typeof !=='unedfined') queries?

I writing testscripts with JavaScript and Selenium and I want to query, if the optional parameter are given, if so, then use them, if not, skip them. /*optional parameter are: day, month, year, ...
0
votes
1answer
17 views

AttributeError: 'element_to_be_clickable' object has no attribute 'click' python3.7

As my code shows, I am trying to automate the process of logging and other things using selenium in python 3.7. I am struck as it is showing "AttributeError: element_to_be_clickable has no object ...
0
votes
2answers
26 views

Select node by text of children

I want to select an element [@class='title'] with XPath <span class="title">Private Area</span> <span class="title"><mark>Ablage für Tests</mark></span> <span ...
0
votes
0answers
11 views

How to link selenium webbrowser to Qt application

My application is a Qt c++ application and I only need to verify that an information was added to Menu1 or Menu2 or Menu3 so I have to double click each one. And for this I need to read the resulting ...
1
vote
0answers
25 views

Selenium keys chord dosen't work with Chrome v75

My code works ok before v75 appeared. I simulated ctrl+a, ctrl+shift+right, ctrl+right keys. I found a computer with Selenium driver and chromium v74 and tries jar file on it. All works. Example of ...
0
votes
3answers
33 views

How to set a wait condition in selenium python test

I would like to ask how to solve time delays in testing. I now have a script like this: WebDriverWait (self.browser, 20) .until (EC.element_to_be_clickable ((By.ID, "Login1_LoginButton"))). sleep (5) ...
-1
votes
1answer
24 views

Why am I getting the following error “OSError: [Errno 12] Cannot allocate memory”? [duplicate]

I am running a headless selenium script from a VM instance on Google Cloud. The script was working fine (when run manually), however, since creating a cronjob which runs every hour I've been getting ...
0
votes
1answer
21 views

WebDriverException: Timed out waiting for driver server to start error with Selenium ChromeDriver and Chromium through Java

I was trying to achieve a page login through selenium-java libraries. Driver that I am using is Chromium (open source version of chrome). This implementation is working fine in Windows environment, ...
0
votes
0answers
20 views

Execute testng xml using java main method in specified folder structure

The execution in testng.xml is working fine but the same execution produces an exception cannot find classpath of the test class when executing with main method. The main method in Java project ...
0
votes
1answer
28 views

Python Selenium is not downloading data when I click link

I wrote a script to find the download link through a series of click, first on the settings gear icon then on the "Export data" tab and finally on the click here to download data link. However when i ...
0
votes
0answers
44 views

How to pass HTML tags in sendKeys() in selenium java?

I am using the below code to input some html related data to a another text area. but after that it saves as Table border='1' style='width: 100%;'><tr><td>a</td><td>b</...
0
votes
4answers
46 views

Validate element is selected; Cannot find unique element

I cannot find the unique element for me to validate if this element is selected. Need help. see attached image for the elements possible. var attr = findElement(By.xpath("//theme-item[@class='...
-2
votes
0answers
18 views

Control Alert Facebook on chrome using Selenium [duplicate]

How to control this alert on chrome using selenium: My code example bellows: from selenium import webdriver from selenium.webdriver.common.keys import Keys import time driver = webdriver.Chrome("C:/...
0
votes
1answer
23 views

Is there a way to get the current browser name using selenium web-driver (nodejs)?

I tried doing driver.getBroswerName(), but it didnt recognize the function getBrowerName()?. I guess there is not that function. So is there any other way to get the current browser name?