Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Browsing all 98221 articles
Browse latest View live
↧

Removing scrollbar from Selenium Screenshots

I'm getting screenshots of webpages using Chromedriver. My code works well. I'm now attempting to remove the ugly scrollbars. Would it be possible to inject CSS into the page? I have seen a couple of...

View Article


Python + Selenium: Reload a page after a timeout on WebDriverWait call

I am looking for a proper way to implement below in Python SeleniumLoad a pageWait a certain period of time(e.g 30secs) for a button to be clickable (by calling WebDriverWait)If got TimeoutException,...

View Article


How to handle the ratings within bubble rating widget with in Tripadvisor?

I hava a scenario in which i need to click fifth bubble of bubble rating widget within tripadvisorThe HTML code is:<span id="bubble_rating" class="ui_bubble_rating fl bubble_10" data-value="1"...

View Article

How to send text to Email field within Twitter login page using Selenium and...

The code for username text area looks like this. It doesn’t have any id and the xpath didn’t work as well. The element from Twitter looks like this<input autocapitalize="none" autocomplete="on"...

View Article

Driver module is not calllable

i have this problem show me error driver module is not callable how to solve that i use pycharm and try to change path for C:\Users\MOSTAFA\Desktop\chromedriver.exe and not workingenter image...

View Article


In selenium webdrive how to login in gmail and get activation code by using...

public String getAuthorizationCode(String account) throws Exception { Message email = getMessagesBySubject("Email Subject "+ account, true, 5)[0]; BufferedReader reader = new BufferedReader(new...

View Article

Using multiple criteria to find a WebElement in Selenium

I am using Selenium to test a website, does this work if I find and element by more than one criteria? for example : driverChrome.findElements(By.tagName("input").id("id_Start"));...

View Article

Trouble with finding element by xpath (selenium module in python)

I am using the selenium module to scrape a website (expedia) in order to retrieve the flight ticket prices.I am having trouble when I want click an an element (the search button) to send the...

View Article


No instance(s) of type variable(s) V exist so that ExpectedCondition conforms...

This compile-time error is thrown:No instance(s) of type variable(s) V exist so that ExpectedCondition<Boolean> conforms to Function<? super WebDriver, V> For this...

View Article


Image may be NSFW.
Clik here to view.

Selenium, setting ClassPath at eClips 4.14.0 and JDK13.0.2

This is my first class in Selenium. I have installed JDK13, eClips 2019-12 (4.14.0) and added selenium-server-standalone-3.141.59.jar to project class path. However, I'm getting package is not...

View Article

How to select a diffrent item from a list of values each time a loop repeats...

So basically what I am looking to do is grab a new item from a list every time i call that list. My list looks something like thistestemail+0@gmail.com testemail+1@gmail.com testemail+2@gmail.com...

View Article

What is the best way to search case insensitive text using Selenium in Python?

The first column of row are email addresses. I send that value to a search bar and click search and then I wait until the search results come through. Then I have this following if statement to search...

View Article

I am writing a script to scrape a website and download files. After...

path='C:/Users/ks/Downloads/AU/ORR/' print (path) substring = "w" files = os.listdir(path) for file in files: src=path+file if substring in file: break print ("there") else: print ("not there")...

View Article


Window keeps closing after running selenium

Everytime I run this code the window opens blank and then loads the required page for about 1 second before closing. from selenium import webdriver driver =...

View Article

Is it possible to send ajax call in selenium?

Couldn't find the answer so decided to write the post here ( Stackoverflow always helpful :) ). I need to send some data via ajax when testing the website. Can it be done within normal javascript...

View Article


Set config.properties values through maven command

I am new to automation and created a sample project. I have a config.properties file and class to read and write to this file. config.properties contains browser and url variables. I want to run the...

View Article

How would I locate a button element which are in the same list and have the...

This is the html code from the website:Screenshot from inspect elementBasically what I would like to do is to find the button but all of the buttons have the same class.

View Article


Python selenium - modifying multiple table values in html code of a webpage...

i am using python 3.7 in combination with selenium 3.141.0 (fire fox) to automatically download a large amount of georeferenced data from the internet. Each file can be accessed via unique x and y...

View Article

How to send a LXML webpage over to Selenium for passing Captchas

I am scraping data with LXML but im starting to encounter a captcha. This is usually no problem because have code in selenium to pass the captcha but i can not use this with LXML. My question is....Is...

View Article

How to click on a button which has no fixed class value? But it have a fixed...

How to click on a button which has no fixed class value? But it have a fixed 'data-testid'.Using JS or Python How to achieve that?document.getElementById("myCheck").click();

View Article
Browsing all 98221 articles
Browse latest View live