简体   繁体   English

如何使用Selenium自动执行click =“ handleSubmit($ event)”

[英]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 我尝试了上述所有方法来单击“ 查找”按钮,但没有得到答复

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: 使用以下选项之一单击“查找”按钮:

  1. xpath (with class attribute): xpath(具有class属性):

     driver.findElement(By.xpath("//input[@class='piejs']")).click(); 
  2. 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.

相关问题 自动化点击事件 - Automate click event on link 如何在使用Selenium WebDriver触发的每个事件上自动测试Google Analytics - How to automate test google analytics on every event fired using Selenium WebDriver 如何使用 selenium 自动化影子 DOM 元素? - How to automate shadow DOM elements using selenium? 当输入由 Javascript 在单击时创建并且从未使用 Selenium 附加到 HTML 文档时,如何自动选择文件? - How do I automate file selecting when the input is created by Javascript on click and never attached to the HTML document using Selenium? 如何在硒中获取单击事件的按钮路径 - How to get button path for click event in selenium 如何使用Selenium自动执行电子签名输入? - How to Automate e-signature input using Selenium? 如何使用C#硒自动拖放多个文件? - How to automate multiple files drag and drop using C# selenium? 如何使用selenium自动化饼图和条形图? - How to automate pie charts and bar graphs using selenium? 如何使用 Selenium Java 框架自动化 Shadow DOM - How to automate Shadow DOM using Selenium Java framework 如何使用Selenium和OpenCV自动测试Canvas游戏? - How to automate testing of Canvas game using Selenium and OpenCV?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM