ruby - Cheezy page objects getting the page URL? -


i'm trying return current page object url i'm not sure how this.

my code looks this:

class apage include pageobject  page_url '/page_url.com'  def get_page_url     return @page_url end 

but doesn't work, @page_url not exist. how can this?

a method added in version 1.0 of page-object gem (see issue 217).

the method called page_url_value. used like:

page = apage.new(browser) page.page_url_value #=> "/page_url.com" 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

android - IBM Worklight 6.1 [Application Error] There was a network error (file:///android_asset/www/index.html) -