How to use selenium to operate sliding verification code

The method of using selenium to operate the sliding verification code is: 1. Use the drag_and_drop_by_offset method of selenium's Actions class to simulate the user dragging the slider; 2. Use the execute_script method of selenium to find the sliding button and simulate the user dragging the slider; 3. Use The execute_script method of selenium calculates the sliding distance, and then simulates the user dragging the slider.

Guess you like

Origin blog.csdn.net/weixin_42588672/article/details/129551173