withTagName is not recognized also import static org.openqa.selenium.support.locators.RelativeLocator.withTagName; is not recognized

305 views
Skip to first unread message

Manohar Mani Manjula Iyer (Murali)

unread,
Dec 11, 2019, 9:26:28 AM12/11/19
to Selenium Developers
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??

Paul Hammant

unread,
Dec 11, 2019, 9:34:53 AM12/11/19
to selenium-developers
This question is better for the selenium-users list, Manohar.

--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/e0d82da4-5221-433b-91af-4544a58e6cdb%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages