拖动滑块到缺口处 :param slider: 滑块 :param track: 轨迹 :return:
(self, slider, track)
| 272 | return slider |
| 273 | |
| 274 | def move_to_gap(self, slider, track): |
| 275 | """ |
| 276 | 拖动滑块到缺口处 |
| 277 | :param slider: 滑块 |
| 278 | :param track: 轨迹 |
| 279 | :return: |
| 280 | """ |
| 281 | ActionChains(self.browser).click_and_hold(slider).perform() |
| 282 | while track: |
| 283 | x = random.choice(track) |
| 284 | ActionChains(self.browser).move_by_offset(xoffset=x, yoffset=0).perform() |
| 285 | track.remove(x) |
| 286 | time.sleep(0.5) |
| 287 | ActionChains(self.browser).release().perform() |
| 288 | |
| 289 | def crack(self): |
| 290 | # 打开浏览器 |
nothing calls this directly
no outgoing calls
no test coverage detected