Method: Sapphire::WebAbstractions::RubySeleniumWebDriver#ShouldTransitionTo
- Defined in:
- lib/sapphire/Adapters/Selenium/RubySeleniumWebDriver.rb
#ShouldTransitionTo(url, comparator) ⇒ Object
165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/sapphire/Adapters/Selenium/RubySeleniumWebDriver.rb', line 165 def ShouldTransitionTo(url, comparator) if(url.instance_of?(String)) temp = StartsWithComparison.new(Evaluation.new(self.CurrentUrl.upcase, url.upcase)) @rootUrl = url else x = url.new().Url temp = StartsWithComparison.new(Evaluation.new(self.CurrentUrl.upcase, x.upcase)) @rootUrl = x end return temp end |