Setting the checked property does not get saved

I'm trying to automate a page which has a checkbox without proper locators. So, using executeJavascript to work on it. I'm trying to check/uncheck the checkbox using two different ways: executeJavaScript("arguments[0].click();",$(By.cssSelector("[i...
more »

2017-09-04 09:09 (0) Answers

Handling Add Extension Popup in Chrome Selenium

I am creating a job that goes to google Chrome store and adds random extensions to Selenium. I have two main issues thus far: 1) I am unsure how to reliably stop chrome at a certain number of extensions. The below method tend not work reliably. ...
more »

2017-09-01 03:09 (3) Answers

If random number hover element

I am trying to create a job that creates a random number generator and if it is above 3, it will hover an element on a website. Two problems. EC.element_to_be_clickable((By.css_selector, '.origin-telemetry-shell-submenu-current-area'))).click() ...
more »

2017-08-30 14:08 (4) Answers

Java: call a method with name stored in variable

I have a requirement such that: String command = "click"; // this can have value such as clear, getLocation, getSize, getTagName etc. WebDriver driver = new ChromeDriver(options); //creating a webdriver object driver.findElement(By.id("id1")).c...
more »

2017-08-30 13:08 (4) Answers

Properly terminate the selenium browser in Python

After I finish running the following Python code: from selenium.webdriver import Firefox from contextlib import closing with closing(Firefox()) as browser: # some code here There are still listening geckodriver processes in my Linux machine. $...
more »

2017-08-14 10:08 (1) Answers

Downloading with chrome headless and selenium

I'm using python-selenium and Chrome 59 and trying to automate a simple download sequence. When I launch the browser normally, the download works, but when I do so in headless mode, the download doesn't work. # Headless implementation from selenium ...
more »

2017-08-11 11:08 (2) Answers

Enter "Enter key" in Appium Testing

How to send/press Enter key from soft keyboard in Appium in Android Automation testing? I tried several options, but none of them are working - instead of pressing the key, they are clearing the text entered in text area. Below is the code (in JAVA ...
more »

2017-08-08 16:08 (4) Answers

Headless chrome + ignore-certificate-errors

I need to get headless chrome to ignore certificate errors. The option is ignored when running in headless mode, and the driver returns empty html body tags when navigating to an https resource. <html xmlns="http://www.w3.org/1999/xhtml"><h...
more »

2017-08-04 17:08 (0) Answers

Error when importing webdriver from selenium

I'm trying to get all results from a predefined google search, but I'm stuck at the following error: Traceback (most recent call last): File "C:\python36\lib\site-packages\selenium\webdriver\common\service.py", line 74, in start stdout=self.log_f...
more »

2017-07-19 11:07 (0) Answers

Build failure [error] 15669

I have a test project for a web site and I'm using maven. When I'm running maven test in Eclipse it works fine but it fails when I launch "maven test" command line. Here is the pom.xml file <?xml version="1.0" encoding="UTF-8"?> <project ...
more »

2017-07-18 11:07 (2) Answers

stop eclipse from deleting folders inside "target"

I am developing a maven project with Spring mvc application with Eclipse. I have some cucumber-selenium test case to check the some behavior of app. I put the chromDriver.exe in the path target\classes\Driver. When i want to run the application it c...
more »

2017-06-28 10:06 (2) Answers