Hi All, @Anil_G
i have a data in excel and i want to match the data with website, if matches then need to click on the next column of website(Count).
img reference for website
img for reference of excel
Also, let me know, if the excel has a pivot table, then will the BOT able to read the data? because i might have a multiple sheet and might have designed in Pivot .
How to achieve?
Anil_G
(Anil Gorthi)
April 12, 2023, 4:11pm
3
@RAKESH_KUMAR_Tiwari
As it is a table you will have table row and table col…
first use the value from excel in the innertext value and use get attribute to get the tablerow number
<webctrl tag='td' innertext='{{CurrentRow("Organization").ToString}}' />
Then use the tablerow obtained in get attribute to click on the next col
<webctrl tag='td' tablerow={{varTablerow}}' tablecol='2' />
<webctrl tag='A' />
if multiple pages are there then we need to add logic to check each page also
Mostly selectors look like this
cheers
Hi @Anil_G ,
used click activity and click on one of the organization in website and edited selector like this
Again used get attribute activity and indicated the same organization column in website.
saved in table_Row.
Again used click activty and click on count column and edited slector like this
is this correct?
Anil_G
(Anil Gorthi)
April 12, 2023, 4:53pm
5
@RAKESH_KUMAR_Tiwari
Wrong…use get attribute and it should use only innertext theh value returned from it to be used in the next selector for click
cheers
Throwing error
just copy paste your sek\lector as i am not able to write it manually
‘{{CurrentRow(“Organization”).ToString}}’ />
Anil_G
(Anil Gorthi)
April 12, 2023, 6:55pm
7
@RAKESH_KUMAR_Tiwari
I dont want you to copy…the selectors are only for illustration…
Assign the currentrow required column value to a variable and then right click in your selector and choose the variable there
Cheers
Hi @Anil_G ,
It is clicking properly, but why it is throwing error, it feels like it is trying to click on next element perphaps.
Anil_G
(Anil Gorthi)
April 13, 2023, 4:15am
9
@RAKESH_KUMAR_Tiwari
Are you running this in a loop?
If yes then the screen should be reset to the initial position after first iteration else the screen wpuld have changed and it would not find
Basically your actions would be like this
For loop
Get attribute using innertext as variable from for loop row
Click Using tablerow from get attribute output
If extraction is part here…then extraction
Perform actions to come to first pag
Loop end next iteration starts
Cheers
yes, it is in loop.
ok understood once i finish the extarction part, then it will go to next iteration.
Thanks
Rakesh
1 Like
system
(system)
Closed
April 16, 2023, 4:22am
11
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.