Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么感觉wait.eles_loaded的反应很慢呢 #456

Open
awaqawaqawaq opened this issue Nov 30, 2024 · 0 comments
Open

怎么感觉wait.eles_loaded的反应很慢呢 #456

awaqawaqawaq opened this issue Nov 30, 2024 · 0 comments

Comments

@awaqawaqawaq
Copy link

awaqawaqawaq commented Nov 30, 2024

from DrissionPage import Chromium
tab = Chromium().get_tab()
tab.set.load_mode.eager()
tab.get('https://humanbenchmark.com/tests/reactiontime')
while(True):
    tab.ele('@class=css-42wpoy e19owgy79').click()
    tab.wait.eles_loaded('@class=view-go e18o0sx0 css-saet2v e19owgy77')
    tab.ele('@class=view-go e18o0sx0 css-saet2v e19owgy77').click()

出现元素到执行操作会有200ms的延迟,但是我用puppeteer只有5ms左右延迟,这是正常的吗
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant