简体   繁体   中英

robotframework doesn't see the xpath

I have a problem for these elements (adresse email and mot de passe please look the picture) I explain I take the xpath for these eleemnts in website after in variables I create locator like this

pages_elements.add(name="emailcpte"           , type="element",        locator='//*[@id="autofill-form"]/screen-register/p[3]/input')
pages_elements.add(name="mdpcpte"             , type="element",        locator='//*[@id="autofill-form"]/screen-register/p[4]/input')

but when I run the test case I have always the same error:

Element '//*[@id="autofill-form"]/screen-register/p[4]/input' not visible after 10 seconds."

I don't understand why please can you help me ?

I don't use python and roboframework since long time maybe its a stupid or easy question, if it is the case sorry

My env:

Python 3.7.0
robotframework_ride-1.7.3.1
robotframework-3.1.2

元素

布赖恩·奥克利(Brian Oakley)您是 iframe 中的正确元素,抱歉,只需在 xpath 确定后选择 iframe

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM