Created
October 15, 2017 12:32
-
-
Save Yardanico/7e2cbee3e5b32e5e4fee33effd7d5514 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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