Sha256: cae3d3d692a3ffa75ad19eaea6615da77f6f4a2597fdafec24526c8497afcd63
Contents?: true
Size: 557 Bytes
Versions: 8
Compression:
Stored size: 557 Bytes
Contents
module GenericTest # Represents a web page state at a particular point of time class Page # @return [Array] List of links attr_accessor :links attr_accessor :url attr_accessor :html attr_accessor :title # Store state of page when it is loaded # @param [Watir::Browser] browser Watir browser def initialize(browser) self.links = browser.links self.url = browser.url self.html = browser.html self.title = browser.title puts "Found #{links.count} links at #{url} (#{title})" end end end
Version data entries
8 entries across 8 versions & 1 rubygems