lib/fluent/platform_watir/platform_object.rb in fluent-0.7.1 vs lib/fluent/platform_watir/platform_object.rb in fluent-0.7.2
- old
+ new
@@ -10,10 +10,18 @@
end
## Browser-Level Actions ##
def visit(url)
- driver.goto(url)
+ driver.goto(url.to_s)
+ end
+
+ def get_cookie_value(name)
+ for cookie in @driver.cookies.to_a
+ if cookie[:name] == name
+ return cookie[:value]
+ end
+ end
end
def url
driver.url
end
\ No newline at end of file