Example #1
0
def xpath(selector):
    return bys.by_xpath(selector)
Example #2
0
 def parent(self):
     return SElement(by_xpath("..")).within(self)  # todo: this should be covered with test especially
Example #3
0
def test_by_xpath():
    assert by_xpath("//a") == ('xpath', "//a")