crawl4ai icon indicating copy to clipboard operation
crawl4ai copied to clipboard

No response

Open tannify opened this issue 1 year ago • 2 comments

Why are the relevant steps not executed when I use a dynamic click simulation button (my JS path is correct) QQ20241117-211709

tannify avatar Nov 17 '24 13:11 tannify

It looks like you are not waiting click event to complete. For example it should redirect or change, but crawler does it's thing right after js code is complete.

flamedmg avatar Nov 17 '24 18:11 flamedmg

@tannify When you're running an action that causes dynamic content rendering, make sure to add a criteria to clear the weighting. For instance, it can be another JavaScript expression that goes through a loop until certain things happen. Or a better way is to use the wait_for parameter, where you can set a CSS selector or a JavaScript expression that returns true or false. Then the crawler will wait for that and then we'll continue. So I guess that's the problem you have here. Let me know if this is not helpful, and then I can help with more information.

unclecode avatar Nov 20 '24 10:11 unclecode