lib/webdrone/vrfy.rb in webdrone-0.3.0 vs lib/webdrone/vrfy.rb in webdrone-0.4.0
- old
+ new
@@ -10,12 +10,12 @@
def initialize(a0)
@a0 = a0
end
- def id(id, attr: nil, eq: nil, contains: nil)
- vrfy @a0.find.id(id), attr: attr, eq: eq, contains: contains
+ def id(text, attr: nil, eq: nil, contains: nil)
+ vrfy @a0.find.id(text), attr: attr, eq: eq, contains: contains
end
def link(text, n: 1, visible: true, attr: nil, eq: nil, contains: nil)
vrfy @a0.find.link(text, n: n, visible: visible), attr: attr, eq: eq, contains: contains
end
@@ -24,9 +24,13 @@
vrfy @a0.find.button(text, n: n, visible: visible), attr: attr, eq: eq, contains: contains
end
def on(text, n: 1, visible: true, attr: nil, eq: nil, contains: nil)
vrfy @a0.find.on(text, n: n, visible: visible), attr: attr, eq: eq, contains: contains
+ end
+
+ def option(text, n: 1, visible: true, attr: nil, eq: nil, contains: nil)
+ vrfy @a0.find.option(text, n: n, visible: visible), attr: attr, eq: eq, contains: contains
end
def xpath(text, n: 1, visible: true, attr: nil, eq: nil, contains: nil)
vrfy @a0.find.xpath(text, n: n, visible: visible), attr: attr, eq: eq, contains: contains
end