Method: Webdrone::Text#xpath

Defined in:
lib/webdrone/text.rb

#xpath(text, n: 1, all: false, visible: true) ⇒ Object



51
52
53
54
55
# File 'lib/webdrone/text.rb', line 51

def xpath(text, n: 1, all: false, visible: true)
  @a0.find.xpath(text, n: n, all: all, visible: visible).text
rescue => exception
  Webdrone.report_error(@a0, exception, Kernel.caller_locations)
end