Skip to content
Advertisement

Tag: selenium-webdriver

Integrating regex in selenium xpath?

Hello I just start using selenium with java framework : I have this case : I need to count all the check boxes in my view which contains multiple pages (1,2,3) and in each web page i have a bunch of check boxes with the same xpath with different number see the exemple below: xpath fir the second checkbox in

I am getting null pointer exception in page object class why I am getting NPE

I am getting NPE in user() method in this line return driver.findElement(username); When I run testcase when I call lp.user() geeting NPE error in page object class java.lang.NullPointerException: Cannot invoke “org.openqa.selenium.WebDriver.findElement(org.openqa.selenium.By)” because “this.driver” is null at pageObjects.LoginPage.user(LoginPage.java:31) at Admission.homePage.testCase(homePage.java:52) Answer You need to initializeDriver() before creating LoginPage object:

sendKeys not working on textarea with area-label and getting element not interactable exception

Firstly apologies for such a bad title, kindly suggest a good title. Here are the details on my issue that I am facing: Website: https://www.desmos.com/calculator/lzidy3m70r Steps: Click on + button on top left Select images and upload any image update values in fields center, width and height Issue: Not able to interact with any of the text areas of center,

Advertisement