Category "selenium"

selenium - java - finding broken links

import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; im

Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided using GeckoDriver

from selenium import webdriver; browser= webdriver.Firefox(); browser.get('http://www.seleniumhq.org'); When I try to run this code, it gives me an error messa

Selenium Python - Finding Elements by Class Name With Spaces

I'm writing a Python program that uses Selenium to navigate to and enter information into search boxes on an advanced search page. This website uses Javascript,

How can I use XPath contains() for a few values under 1 common class?

I need create a Xpath for an expression like - (trim(STRING_1)=upper(STRING_2)) but unfortunately this expression is located in some editor, the code is - <

Selenium capability or option to stop 'Save Card?' popup Chrome mobile browser?

Selenium is there a capability or option to stop 'Save Card?' popup Chrome mobile browser? I am using Browserstack automate to run selenium tests on an Android

xpath to extract the text in selenium

Need help in extracting the case id, would be great help <div class="note note-info"><h4 id="note-label-CreateCaseUploadDoc:Display_Process_Com

Implicit wait is executing after an explicit wait

I'm having a problem with my automated script using selenium+python unittest. In my setUp() I have this line: def setUp(self): self.driver.implicitly_wait(10)

Python Selenium - Can't Click on Button

All I am trying to do is select the drop down & then select "Export Excel Spread Sheet". Example of Drop Down Code: from selenium import webdriver from sele

Why is selenium script not working in chrome version 60?

I am getting org.openqa.selenium.SessionNotCreatedException: session not created exception we have selenium-java------- 2.53.0 chrmedriver version -------- 2

Why do we need to typecast the WebDriver instance to JavascriptExecutor before calling the executeScript method?

JavascriptExecutor is an interface which provides some default code for executeScript method. RemoteWebDriver implements this interface and overrides the method

How to detect a button.click() failure in Selenium?

I have a Selenium 3 Python script that is used to file FTC complaints for nuisance calls. Today a miscreant got through using the number "0" (literal 0). The FT

How to verify icon's presence in statusBar of Android with Selenium?

I need to write code (Java, Selenium) that verifies icon's presence in Android status bar. For instance, after enabling airplane mode, a plane icon appears. But

Log into gmail using Selenium in Python

I am trying to log into gmail using Selenium. In the new gmail log in, first you type your email id and then a next page comes where you type your password. URL

How to fix Deprecation Warning: executable_path has been deprecated, please pass in a Service object

I am pretty new to coding and Python - The scraper starts off well and works, until at some point (after around 1 minute or so) it stops and hands out this erro

Apply proxy gateway in Selenium webdriver

My goal is to apply a proxy gateway (eg. geosurf.io) inside of the Selenium webdriver. I need to do it thru using DesiredCapabilities, since it seems DesiredC

How can Geckodriver/Firefox work without Marionette? (running python selenium 3 against FF 53)

I'm seeing a bizarre "untrusted cert" error only on selenium-controlled firefox pop-ups. Very specific. To solve this problem, various google results suggested

java.lang.NoSuchMethodError: 'com.google.common.collect.ImmutableMap error when trying to execute tests using Chromedriver and Maven

I am new to selenium tests and I am currently watching some youtube videos using maven. Today I tried a few codes and worked fine but when accessing one store p

Is it possible to execute cucumber scenario's in parallel on different browsers(chrome and firefox) at same time?

I succeeded to run cucumber scenario's in parallel but only on one browsertype(chrome or firefox). So first I run my tests on chrome. When tests finish I start

Jmeter/Selenium scroll down in a specific area and not the entire page

I am having trouble trying to figure out how to scroll down a one section only from the entire webpage. I have tried window.scrollBy(x,y) which works but for th

Jmeter/Selenium scroll down in a specific area and not the entire page

I am having trouble trying to figure out how to scroll down a one section only from the entire webpage. I have tried window.scrollBy(x,y) which works but for th