How to select Submenu in findElement(By.?) | Selenium Forum
M
mamatha.rkarnati Posted on 15/12/2020

Hi Ashish,

 

Today in interview I was asked a question related to Menu - How do you select submenu froma main manu in the findElement method?

(He tried to help me by asking-in findElement method after By. there is a specific method used for selecting subItem of a Menu)

I did some reseach on google but couldn't find a solid answer.

 

Appriciate your response.

 

Thanks

Mamatha


A
Ashish Thakur Replied on 15/12/2020

Submenu is a list <li>

most of times.

You can use the li index and find...


Related Posts