Hi All,
I’m extracting data from web page when table not found getting some error or it is taking time to skip. How to skip when no table found.
Details will be available on page. I have to skip when no table found.
Thanks in advance
Niranjan
Hi All,
I’m extracting data from web page when table not found getting some error or it is taking time to skip. How to skip when no table found.
Details will be available on page. I have to skip when no table found.
Thanks in advance
Niranjan
Hi @Niranjan_k
Use the Check app state activity and indicate the common element in the table, In Target appear block insert the Extract Datatable activity and don’t insert any activity in Target doesn’t appear block.
The check app state activity will check any table element exist on the foreground, if presents the bot will execute target appear block which executes the Extract Table data activity and extracts the table, else it will execute Target doesn’t appear block and doesn’t execute any activity.
Hope it helps!!
Hi @Niranjan_k
Use Check App State activity to indicate the Table
@mkankatala i tried with check app state but it highlighting data. I want to skip when no table found. Can you help with image how to fix the issue. Thank you.
Could you share some images when the table exist and when table not exist… @Niranjan_k
@lrtetala @mkankatala below is the error message I’m getting
Could you share some images when the table exist and when table not exist… @Niranjan_k
If you share how it looks like then we will give you better way for it.
@mkankatala i got it but this is sensitive details,I’m in able to share the details.
Check this solution and try to replicate it with your data and website.
Output when Table available on the site.
Output When the Table unavailable on the site:
Code:
ExtractDataIfAvailable.zip (7.7 KB)
Thanks,
Ashok
First, check if the table is active using the “Element Exists” activity. Then, add an “If” condition. If the element exists, extract the table. Otherwise, do something else.
Find one element which is specific in the table, the selected element has to be there in the table for every time.
→ Drag and drop Check app state activity and indicate the specified element in the table.
→ In the Target appear block insert Extract Table data activity.
→ In the Target doesn’t appear block don’t insert any activity.
Check the below image for better understanding,
Hope you understand!!
@ashokkarale thank you
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.