Module 14-ICICI | Selenium Forum
A
Anjali C Posted on 20/12/2019

In the 'Where do you live currently field' when I type Bangalore, the span is changing from class='input input--hoshi' to 'input input--hoshi input--filled'.

 

 

Is it not necessary to consider this when doing the sendKeys(keys.ENTER)?

 

Thanks,

Anjali


A
Ashish Thakur Replied on 22/12/2019

You can use contains tag

//span[contains(@class,'hoshi')]


A
Anjali C Replied on 22/12/2019

Got it. Thanks!