The first loop for printing driver.WindowHandles giving me 2 window handles...
for getting the number of window handles after opening one window and after opening one more window.the first for loop is giving me 2 window handles instead of 1,when only 1 window is opened.whereas...
View ArticleHow can I click on submit button on the given html in Selenium python
<button type="button" title="Lock page for editing and routing" id="button-lock-entity" class="btn btn-default ng-binding" ng-disabled="!vm.lockEnabled" ng-...
View ArticleGetting "chrome error communicating with the remote browser. it may have died"
While automating the one scenario in chrome browser using Selenium Webdriver (Junit) as follows:Click on Place Payment Button.Wait for 20 SecondsRetrieve the Order Number(Used GetText())After waiting,...
View ArticleSelenium XPath returns different text than chrome developer console
I have the following tag:<div role="alert" class="fade alert alert-danger show">Benutzername oder Passwort ist falsch</div>with my selenium xpath:WebElement errorMessage =...
View ArticleCoordinates of a location in a web page [closed]
I am trying to extract the coordinates e. g. longitude and latitude of the pointer on a map depicted on a static google maps image from a house listing.Example:...
View ArticleCode Coverage for Cucumber Tests using Jacoco
I am trying to integrate Jacoco to get the code coverage for my Cucumber tests using Maven. Following is my project...
View Articlevba selenium - unable to access website elements after ajax loads data
Theres a website I need to scrape some data from using vba selenium chrome. Website loads a table with ajax, and I can wait for the table to fully load, however, I cannot access the loaded elements....
View ArticleSelenium Webdriver cannot input text into field by XPATH in TinyMCE
I have followed the instructions, but my script isn't working: # Wait for the iframe to be present print("a") result_frame = WebDriverWait(driver, 10).until( EC.presence_of_element_located((By.ID,...
View ArticleStarting automated tests with Edge Driver
I already got the tests running with chrome, but now we need to test also with MS Edge.I have downloaded the correct Edge WebDriver (version-vise) and got it up and running with the selenium standalone...
View ArticleScraping Datapoints Embedded in a Javascript Plot
I wish to scrape the last chart, "Commute Times on Congestion Zone Routes in New York City Versus Boston and Chicago", from this website. My goal is to collect all the observations over the full time...
View Articlejava.net.SocketException: Connection reset on Selenium driver.close() or...
I am seeing a java.net.SocketException: Connection reset almost every time I use a driver.close() or driver.quit() statement. The browser does get closed and the exception isn't affecting any of my...
View ArticleHow to get table data from a selenium webelement and check column value
In my selenium script , I want to get the table data from below table, and compare all values under column 'phone' and check if all the values are only numeric.I tried to use the following code, if is...
View Articleweb-scraping using R selenider on linux error --user-data-dir
I'm attempting to web-scrape using the following R code (which was obtained from this thread: link to other questionlibrary(selenider)library(rvest)session <- selenider_session("selenium", browser =...
View ArticleSelecting options from Auto Complete Dropdown using selenium web driver in...
I have to select options from a drop down on a page. I tried the below code but it is showing a syntax error. Can somebody help me with this?web_element x =...
View ArticleWeatherUnderground Web Scraping - choosing different measurements systems
I've been trying to change measurements systems. Default measurement system on the WeatherUnderground is set on imperial system.from selenium import webdriverfrom selenium.webdriver.common.by import...
View ArticleWeb Scraping WeatherUnderground
I'm doing the project that reads the data every hour from WeatherUnderground and it saves the data into a txt filefrom selenium import webdriverfrom selenium.webdriver.common.by import Byfrom datetime...
View ArticleHow to Run Parallel Tests with Selenium Standalone?
I am developing a Java-based test automation project and using Selenium Standalone to run my tests. Currently, I can run tests on a single browser instance, but I want to execute parallel tests.I tried...
View ArticleHow to zoom out with Selenium in Python?
I'm trying to test a website with Selenium by clicking on an element. The element is on the page but I cannot see it because it is covered with Slenium floating alert. So I cannot click on it. One of...
View ArticleSelenium change language browser Chrome / Firefox
I'm trying to test my website with Selenium but I don't manage to change the language of the browser. I tried with Firefox, changing the profile also but it's not working.That's a pity because much of...
View ArticleHow to Automate a Website That Opens Only in AWS WorkSpaces Using Selenium...
I have a website that can only be accessed inside AWS WorkSpaces. I am using Java Selenium with IntelliJ IDEA for automation. The problem is that my local machine cannot access the website, so I need...
View Article