Hello, I need the ability to change selectors on the fly for the data from db. Is any way for this?
For example, I've made selector that selects link with text "hello", I manually changed text "hello" to "see you later", and now it selects the link with text "see you later". I need the ability to make this changes on the fly for texts from database. Is it possible?
Is any way to change selector on the fly?
Re: Is any way to change selector on the fly?
You could start by importing this premade from the wizard. Just right click Project Explorer -> Globals -> Import Premade and visit the premade page. Then you'll be asked for a global name (you can just keep the default), and a selector and gatherer. For the gatherer, just use Gather.Text and as a selector use a selector that selects all the links you'll need, regardless of the text, since later on you'll filter by text.
Then, whenever you need to select a link with the text "my text" you can just do this:
Or to use text from a database:
Then, whenever you need to select a link with the text "my text" you can just do this:
Code: Select all
FindElement
· "my text"
Code: Select all
Query.MyQuery
as (text)
FindElement
· text
Juan Soldi
The Helium Scraper Team
The Helium Scraper Team