Closed unsciorg closed 1 year ago
We just need to determine whether there is a clickable element in frame
.
for target_frame in page.main_frame.child_frames:
click = await target_frame.query_selector("xpath=//input[@type='checkbox']")
if click:
await click.click()
I think this method of judgment seems somewhat imprecise. We should check if the URL of the iframe contains "challenge.cloudxxxx.com". To avoid detection. Therefore, we will only check for the presence of "challenge" in the URL.
How do you think?
I think this method of judgment seems somewhat imprecise. We should check if the URL of the iframe contains "challenge.cloudxxxx.com". To avoid detection. Therefore, we will only check for the presence of "challenge" in the URL.
Makes sense, I'll add that.
ok, thanks for your project 👍
@unsciorg Hi, I have helped you improve the PR, do you think this code change is okay?