domcurl icon indicating copy to clipboard operation
domcurl copied to clipboard

Should allow user define wait selector

Open thangman22 opened this issue 7 years ago • 3 comments

In case of cUrl is confirm that all element is loaded before return. domcurl should do it same

Solution allow user to pass selector that user want to wait with --wait-selector -w

thangman22 avatar Feb 22 '18 14:02 thangman22

Are you looking for a after 'load', 'domcontentloaded' or https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagewaitforselectororfunctionortimeout-options-args

PaulKinlan avatar Feb 24 '18 16:02 PaulKinlan

Let me try in my case

thangman22 avatar Feb 27 '18 09:02 thangman22

@PaulKinlan after try --waituntil it is not my expect because Dom is load but my content from Ajax is not loaded. I will open PR with what I thought.

Example if you access https://thangman22.com/ under the blog will showed loading at start and loading content from Ajax. I want domcurl to wait Ajax loaded.

API should look like parameter should pass as CSSselector with --wait-selector

thangman22 avatar Feb 27 '18 09:02 thangman22