How to usee variable in selectors

@bhe98 can i have screenshot of entire selector before and after variable replacing.

sorry there was a problem uploading my file

I’ve attached a few images

Basically, I am trying to dynamically extract the table from Economic Calendar
But the table changes everyday, and the selector changes according to the day of the week (friday= daily-cal5)

The selector before replacing was < webctrl id=‘daily-cal5’ tag=‘TABLE’ />

Don’t edit it in the selector editor. Copy and paste in the properties tab:
“< webctrl id=’” +updated_daily.ToString+ “’ tag=‘TABLE’ />”

If you want to open the expression editor instead of the selector editor when you click the three dots:
Click on the field beside the selector (not the 3 dots button), type a letter after the string, such as: "< webctrl id=‘daily-cal5’ tag=‘TABLE’ />"a
Click away, now click the three-dots button and it should open the expression editor.

The properties tab looks like this tho

or is there some other way to dynamically extract the table?

This is the properties tab. Paste the entire string there, do not click the 3-dots button since it opens up the selector editor

This is what it looks like

Expand the Target column by clicking the Plus icon

got it… but still doesnt work :confused:

Is your variable declared within the attach browser scope?

yep it is

do you know what the problem is ?

Preferably, I need to take a look at your .xaml file

Thanks Bryan

Variable .xaml (18.4 KB)

the second sequence is duplicated sorry

Hi @bhe98

I do not see anything wrong with it, i am still able to retrieve the datatable.
You may refer to the attached file.
Variable .xaml (9.6 KB)

Cheers

indeed.

hahaha sorry about it.

thank you so much :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.

1 Like