Automating a login with out providing the password via selenium Webdriver

I am trying to create an automated test to one of my accounts. I have manage to do so but i have to provide the password via driver.sendKeys(). Any idea on how i could automate this part without …

I am getting Null pointer Exception while fetching data from the excel sheet [duplicate]

Code: public class ContactUsFormTest { WebDriver driver; @BeforeMethod public void run() { System.setProperty(“webdriver.chrome.driver”, “Driver Path”); driver=new ChromeDriver(); …

Handle/Accept cookie pop-up in Selenium

I am trying to ‘accept the cookies’ on the homepage, but my code doesn’t work. I tried to get the new window handles and then identify the subsequent Xpath for the frame and Accept button but it never …

React.js How to define a custom id, rather than showing react-select-1–value in html

How do I change the React.js application to stop randomly allocating inputIds, so that Selenium will work consistently? I’m working with Selenium and a React.js application. The application is …

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: import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome….

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: ChromeOptions options = new ChromeOptions(); options.addArguments(“disable-infobars”); and the “Chrome …

Allure report: nothing shown in Chrome

I’m trying to use Allure-framework to generate a report for my Selenium WebDriver tests. I use JUnit framework and allure-maven-plugin with version 1.3.9 of Allure. I run tests with mvn test then …