Selenium 4 - Relative locators withTagName

preview_player
Показать описание
@qavbox #selenium4_qavbox

Selenium 4 new feature -
relative locators, by using withTagName("TagName") and then relative to this elements, we can use any one or combination of above(), below(), near(). toLeftOf(), toRightOf() overloaded method.

Selenium 4 api documentation -

Рекомендации по теме
Комментарии
Автор

why do I get this ReferenceError: withTagName is not defined.


JS

CDO
Автор

Can you please give the detailed explanation for installation a selenium 4 ?

mohammedmustafa
Автор

Hi Sir,
I have imported selenium 4 jar by maven. I am unable to use relative locators.
Its not finding the relative locators jar from imports
What may be the problem?

mohammedmustafa