Programmatically click a webpage button

后端 未结 3 956
心在旅途
心在旅途 2020-12-18 06:18

How to programmatically click a webpage button in Java?

Given this button:

 
B
3条回答
  •  猫巷女王i
    2020-12-18 06:21

    if you looking for browser automation can use selenium or java.awt.Robot

    Robot can send 'clicks' to the OS. have used it along with vbs scripts to first make sure a particular window has focus and then send text and clicks, and finally save results ... not very good as if the page changes things then you need to make adjustments. But the person I made this used it for 4 years.

提交回复
热议问题