module Webdrone class Browser def text @text ||= Text.new self end end class Text attr_accessor :a0 def initialize(a0) @a0 = a0 end def id(text) @a0.find.id(text).text end def css(text) @a0.find.css(text).text end def link(text, n: 1, all: false, visible: true) @a0.find.link(text, n: n, all: all, visible: visible).text end def button(text, n: 1, all: false, visible: true) @a0.find.button(text, n: n, all: all, visible: visible).text end def on(text, n: 1, all: false, visible: true) @a0.find.on(text, n: n, all: all, visible: visible).text end def option(text, n: 1, all: false, visible: true) @a0.find.option(text, n: n, all: all, visible: visible).text end def xpath(text, n: 1, all: false, visible: true) @a0.find.xpath(text, n: n, all: all, visible: visible).text end def page_title @a0.driver.title end end end