[英]How to automate click = “handleSubmit($event)” using Selenium
I tried all the above ways to click on the Find It button but i am not getting the response 我尝试了上述所有方法来单击“ 查找”按钮,但没有得到答复
URL : https://www.jetblue.com/plan-a-trip/#/ 网址: https : //www.jetblue.com/plan-a-trip/#/
Button : Find it 按钮:找到它
Source Code 源代码
<input class="piejs" ng-hide="type=='bff'" value="Find it" ng- click="handleSubmit($event)" type="submit">
Can you please help in getting the result ? 您能帮忙获得结果吗?
Here is the solution for your Question: 这是您的问题的解决方案:
Use one of the following options to click on "FIND IT" button: 使用以下选项之一单击“查找”按钮:
xpath (with class attribute): xpath(具有class属性):
driver.findElement(By.xpath("//input[@class='piejs']")).click();
xpath (with value attribute): xpath(具有value属性):
driver.findElement(By.xpath("//input[@value='Find it']")).click();
Let me know if this helps you. 让我知道这是否对您有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.