While entering the vlaue in username text box getting an error “Unable to locate Element” .I tried to enter the value through id ,xpath ,css selector but getting the same problem agaian and again.I tried other cases also which i found on google .
I am able to click on any button or link through selenium.
You are not able to find element because the element is not on “HTML Page”. The element is embedded inside an “I-Frame”.
So, in order to get any element of IFrame, we first need to “Switch to IFrame”. Here is code you require: