简体   繁体   中英

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):

     driver.findElement(By.xpath("//input[@class='piejs']")).click(); 
  2. xpath (with value attribute):

     driver.findElement(By.xpath("//input[@value='Find it']")).click(); 

Let me know if this helps you.

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