I am trying to use this command
WebElement AboveElement=D.findElement(By.cssSelector("input[value='Subscribe']"));
WebElement txtbox=D.findElement(withTagName("input").above(AboveElement));
but withTagName is not recognized also import static org.openqa.selenium.support.locators.RelativeLocator.withTagName; is not recognized ... it asks me to create a method called withTagName
I am using
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>4.0.0-alpha-3</version>
</dependency>
Any ideas??