0

i cant click the menu named biometric check list. there's total five frames and i started to read it from first index. getting unable to locate an element error. What might be the reason any idea.

     driver.switchTo().frame(1).findElement(By.xpath("//div[@class='menu'//li[@id='biometricCheckList'//a[@title='biometric Check List']")).click();

enter image description here

0

Indexes start at 0, I think you have to chain .frame(0).switchTo().frame(0) until you get to 5. Or do seperate calls five times.

if this is a new application in development, please tell the developers that framesets are depricated and should not be used anymore.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.