Skip to content

Instantly share code, notes, and snippets.

/*
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/
*/
from robot.api import ExecutionResult, ResultVisitor
import re
class KeywordTimes(ResultVisitor):
VAR_PATTERN = re.compile(r'^(\$|\@)\{[^\}]+\}(, \$\{[^\}]+\})* = ')
def __init__(self):
self.keywords = {}