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

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -