Skip to content

Instantly share code, notes, and snippets.

@Yardanico
Created October 15, 2017 12:32
Show Gist options
  • Save Yardanico/7e2cbee3e5b32e5e4fee33effd7d5514 to your computer and use it in GitHub Desktop.
Save Yardanico/7e2cbee3e5b32e5e4fee33effd7d5514 to your computer and use it in GitHub Desktop.
type
LocationStrategy* = enum
CssSelector
LinkTextSelector
PartialLinkTextSelector
TagNameSelector
XPathSelector
const
StrategyToString: array[LocationStrategy, string] = [
CssSelector: "css selectors",
LinkTextSelector: "link text",
PartialLinkTextSelector: "partial link text",
TagNameSelector: "tag name",
XPathSelector: "xpath"
]
let a = CssSelector
echo StrategyToString[a]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment