Nightmare conditional wait()
I’m trying to crawl a webpage using Nightmare, but want to wait for #someelem
to be present, only if it actually exists. Otherwise, I want Nightmare to move on. How can this be done using .wait()
?
I’m trying to crawl a webpage using Nightmare, but want to wait for #someelem
to be present, only if it actually exists. Otherwise, I want Nightmare to move on. How can this be done using .wait()
?
I know the title of the question looks very vague! But that’s there’s to it.
Here is everything involving the link: