Does not find element with findElementById

0

Expensive,

I'm trying to fill two text fields (login and password) of a particular page. Using the following code. (Both by byID, bySelector, none works)

driver.findElementByName("usuario").SendKeys MyLoggin

When debugging the code, when it arrives at this line it returns the following error.

  

Element not found. Method = name, value = user

I tested this same code on the Google page and got it done. Can the page have some kind of lock?

    
asked by anonymous 28.02.2018 / 16:46

1 answer

1

Expensive,

Resolved, I identified that the page has several frames, and the input's were located within a specific frame. So I used the following code before running findElement.

driver.switchToFrame ("login")
driver.findElementByName("usuario").SendKeys MyLoggin
    
28.02.2018 / 18:11