jQuery expressions


This article explains how to use basic jQuery-like expressions to manipulate and interact with HTML elements on a page.


To wait for an element to appear, simply use the wait() function after selecting the element with a jQuery-like selector, and click on the element using the click() function, once it appears.



If you want to wait for an element that matches a selector and contains specific text, you can use the filter_includes() function. This function allows you to specify the text to include in the element and then wait for it to appear. 



You can also use the wait() function with a {hidden: true} parameter to wait for an element to not appear.

$('selector').filter_includes('Price').wait({hidden: true});


Using these jQuery-like expressions can make your code more readable and efficient, allowing you to scrape websites with ease.

Was this article helpful?