We have brand new MacBooks with High Sierra (10.13.6). Other system info: Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS) JAVA_HOME: /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home When tried to open Android UIAutomatorViwer we’re getting following error: /Library/Android/sdk/t…
Tag: selenium
Selenium – select an input from an angularjs component
I have an AngularJs component that contains an input of type text. I have used the following code to enter a date. It fails most of the times when I run the test headless. There are a few other inputs before the datepicker that I fill in. But when the test reaches datepciker, it fails because it can not find
Send text to div in Selenium + Java
I want to send a text to a div element in web.whatsapp. I tried several ways ie using XPath, cssSelector, class name etc. but none is working for me. This textbox comes when we attach an image in web.whatsapp. Answer Please step into the div and use the div with the class “selectable-text”. As thi…
org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start. Build info: version: ‘unknown’, revision: ‘unknown’
While everything works on my machine, when I bring the project in which I’m working on my server, Selenium and Chromedriver won’t boot, causing the following exception Everything works like this: the user, for launching the crawler, is supposed to click a button. Then, with JavaScript, I make an A…
Exception in thread “main” java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;)
I develop the selenium code that: I’m getting the error that is: I’m trying to solve this issue according to This Solution by upgrading guava-21.0. But I’m still getting this error. could anyone give a solution to solve it? Answer This error message… …implies that the JVM was una…
Create Post Api in Java for Test Rail
Im trying to create a java post request to create a test run on test rail, however it doesn’t seem to be working heres my code: The testrail documentation is here im looking for the add run http://docs.gurock.com/testrail-api2/reference-runs Any help here how to make this actually work , is completing b…
Selenium returning the hidden element as visible, clickable and enabled when element is hidden & not clickable
I want to open the filters only if they are not already open. For that, I’m checking if “Apply Filter” button is visible/clickable. To my surprise, I’m getting the element as visible/clickable even though it is not. Button code mentioned below, Method trying to check if element is clic…
Selenium and Java: How do I get all of the text after a WebElement
I am coding a program in Java using WebDriver and am having a little bit of trouble getting the text after the select webElement. The HTML code for the part of the website that I want is as follows: The textbox class codes for a search bar and a drop down bar of languages My Java code is currently able
Incompatible library version selenium / guava
My app has a hard dependency on com.google.guava:guava:23.3 or superior But I am also using org.seleniumhq.selenium:selenium-java:3.0.1 which is incompatible with guava versions > 22.0 as discussed here: https://github.com/SeleniumHQ/selenium/issues/4381 I am pretty new to Java, what is the best course of …
disable-infobars argument unable to hide the infobar with the message “Chrome is being controlled by automated test software” with ChromeDriver v2.36
I just updated ChromeDriver to newest version – 2.36. In previous versions I’ve set: and the “Chrome is being controlled by automated test software” warning bar wasn’t displayed. With the same option set, I’m keep seeing it. Do you know how to disable this from appearing in…