this is the chapters tree view
this are the tags and attributes i am getting for the selectors
it has around 98 chapters like that please help me
this is the chapters tree view
this are the tags and attributes i am getting for the selectors
it has around 98 chapters like that please help me
Hey!
Open the selectors in UiExplorer…
and choose the aaname in the aaname you can see the selected chapter name… Replace the chapter name with variable…
Regards,
NaNi
@THIRU_NANI
i have to use which variable u mean counter ? i am not getting these dynamically passing variables things properly can u help me throught it and i have selected the aa name in it too after that i have to pass which variable and where
Hey!
Awesome…
Let’s say the chapter names are dynamic… You’re getting these chapters names from Excel…
So, Read that column Inside the for each row Like this…
Assign Chapter = CurrentRow("ColumnName").ToString.Trim
Now replace the aaname={{Chapter}}
This will click the chapters dynamically…
Regards,
NaNi
while assigning i am getting this error
sorry for the trouble if i understand this perfectly i have to deal with this type of work everytime please help me!
thanks & regards
Lokesh
Hey!
You need to pass the columnName…
Please replace the ColumnName with Your excel columnName
That assign should be inside the for each row
If possible show us the excel file…
Regards,
NaNi
Hi,
Can you share the excel file or website link, If possible
Hello @lokeshmello
Please refer to the below video. The intention is you need to get the value from excel and need to pass it to the attribute “aaname”. for the above , you need to use Assign activity inse the for each activity.
this is excel file
regards
lokesh
Hey!
Try this:
CurrentRow("Column name").ToString.Trim
Reference:
After Assign use the click activity in the aaname pass the chapter variable…
Regards,
NaNi
@THIRU_NANI
after the steps i did not get any error after passing the variable it is showing like this
it is getting because there is still some process left in it like if i click that chapter name it leads to another page where there is a treeview of data where i have to click and expand it like this picture below
this is how it get expands and have to extract the data of it and it is structured and it extracts it i checked
what should i have to do after it clicks the first chapter that leads me into this page?
thanks
Lokesh
Hey!
How does we know which node to expand and which node to select? after clicking on the Chapter?
This will change every time or the process is same?
Regards,
NaNi
the process is same for every chapter
but there will be more nodes for some chapters and there will be less for some of them but it is not fixed
i selected the nodes for two chapters there’s no change of tags and attributes but only change are nodes as i mentioned above it is differnt for each chapters
As you can see it in here the idx is not changing after expanding the first node only tablerow is changing
Hey!
Actually, we won’t recommend to use the Idx… Since it’s not good practice…
We can’t remove the idx directly… But we can go with the alternative one’s…
Choose the aaname… You can make this dynamic…
The Items which we’re expanding… Those are in table… so we can pass the row item as well…
Regards,
NaNi
hi actually the chapter is also not sloved yet it is not working actually
it throws an error like this
Hey!
Just use the wild cards…
We’re clicking the chapters as we passed the variable but in our selector we didn’t changed the TableRow…
That’s why it’s not working
Make TableRow=‘*’
Regards,
NaNi
i have used asterisk and it did not work
what is this mean variable is not defined in current scope?
thanks
Lokesh
Hey!
I can see there is one more tableRow as well… Could you please change that to *…
And change the scope of the variable which we created as Chapter…
But what is that 1? Next to the chapter variable?
Could you please remove that as well…
Regards,
NaNi
changed it as well no use
it is not validated so far
Hey!
It won’t validate… But this will works fine in Run mode…
No, need to worry
Regards,
NaNi