Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
// Example lookup for: <a class="class1 class2">Aanmelden<>Login</a>
browser.link("class1")			// no match
browser.link("/class1/")		// ok
browser.link("/CLASS1/")		// no match
browser.link("/CLASS1/i")		// ok
browser.link("aanmeldenlogin")		// no match
browser.link("/aanmeldenlogin/i")	// ok

Combine with indexer:

Code Block
browser.link("aanmeldenlogin[1]")	// 2e link!
browser.link("/aanmeldenlogin/i[1]")	// idem

The use of a regex can be a way of text matching in an hyphenation piece. (example code available upon request

...