简体   繁体   English

robotsframework 看不到 xpath

[英]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我对这些元素有问题(地址电子邮件和 mot de passe 请查看图片)

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我不使用 python 和 roboframework 因为很长一段时间可能这是一个愚蠢或简单的问题,如果是这样的话抱歉

My env:我的环境:

Python 3.7.0
robotframework_ride-1.7.3.1
robotframework-3.1.2

元素

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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