cdp.wait_for_element seems to be freezing despite of the timeout? #4213
Replies: 3 comments 1 reply
-
|
You could try changing the |
Beta Was this translation helpful? Give feedback.
-
|
I am not sure if i fully understand what you mean - I have to use this statement So how can i set this: try changing the pageLoadStrategy to "none" via the pls arg |
Beta Was this translation helpful? Give feedback.
-
|
Thanks - i will try this out |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using the cdp mode in that way iterating over many links in that way
Generally most of the time this works fine but sometime the program freezes at this wait_for_element statement
sb.cdp.wait_for_element('div#cphPrimaryContent_pnlCompany', timeout = 10)Due the timeout setting i would say that this should not happens but the program is writing "Wait for element..." and then
nothing happesn anymore.
Is there any way i can do do that in a different way so i can be sure that an exception is thrown when there is any problem finding this element?
Beta Was this translation helpful? Give feedback.
All reactions