Scenario is with an eComm website:
Cases are :
- Open https://www.flipkart.com/
- Click on Login URL
- Top Window opens up.
- Try adding phone number [Don't login using eMail ID]
- Find a +91 gets added as a prefix automatically whenever you add a phone number.
I am using Selenium WebDriver and Java for automating this scenario. Any help would be appreciated.
Thanks.
5条答案
按热度按时间esbemjvw1#
由于某种原因,无法获取动态Xpath。请尝试此绝对路径
kpbpu0082#
Firefox WebDriver中有一个bug,现在已经修复。
从here下载最新的Gecko驱动程序
jjjwad0x3#
关闭这个。它现在为我工作的配置FF 53,geckodriver-v0.16.1-win 64,Windows 64位和 selenium 3.4.0
更多信息请点击这里:https://github.com/mozilla/geckodriver/issues/659
soat7uwm4#
网络元素电话=驱动程序.findElement(通过.xpath(“//[@id=“加载表单”]/字段集[2]/输入”));发送键(“123456789”);
这对我很有效!
ltskdhd15#
对于这里的特定情况没有什么特别的。只要打开登录窗口并使用下面的代码: