Skip to content

Added :url locator to get url of current page#101

Open
milanito wants to merge 1 commit intofelipecsl:masterfrom
milanito:feature/url_property_locator
Open

Added :url locator to get url of current page#101
milanito wants to merge 1 commit intofelipecsl:masterfrom
milanito:feature/url_property_locator

Conversation

@milanito
Copy link

Description

This PR is supposed to solve #64 by adding a :url locator. it can be used from a :follow or the root page

I have also added a rescue on the follow page to not crash when a follow is not working (404 mostly)

Here is an example of usage

data config[:list_selectors][:link], :follow do
    title 'css=h1'
    url :url
  end
end

@PedroAugustoRamalhoDuarte

Good feature @milanito thanks for that!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants