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