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
/* | |
USAGE: open 'Developer Tools', open 'Console', copy-paste everything. | |
*/ | |
/* First add missing interface for evaluating XPath expressions. | |
This is from wicked-good-xpath https://code.google.com/p/wicked-good-xpath/ | |
*/ |
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
from robot.api import ExecutionResult, ResultVisitor | |
import re | |
class KeywordTimes(ResultVisitor): | |
VAR_PATTERN = re.compile(r'^(\$|\@)\{[^\}]+\}(, \$\{[^\}]+\})* = ') | |
def __init__(self): | |
self.keywords = {} |