Chromedp selector options

Could you explaine those Chromedp selector options?

  1. There is an asteric after // - what does it mean?
  2. In h2 part, in contains - what does it mean when a dot symbol placed after opening parenthesis?
chromedp.WaitNotPresent(`//*[@id="js-pjax-container"]//h2[contains(., 'Search more than')]`),
1 Like

That’s not go specific, the passed string looks a bit like an XPath selector, but that’s just a guess. Perhaps that’s enough for you to Google.


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.