Best way to avoid an error if an Internet Explorer Element is not found

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
diamondrail
Newbie
Posts: 18
Joined: Wed Jul 31, 2019 9:38 am

Best way to avoid an error if an Internet Explorer Element is not found

Post by diamondrail » Tue Oct 29, 2019 5:43 pm

I have a situation where I need an element to be clicked, however, if that element is not shown on the page, I want the script to continue without an error. (Usually getting an error because the script cannot find the IE element).

What type of If statement do I need to use, can someone assist me with this? Please show me with the below example.

Example:


// Change "O" to H to extract inner html, T for just text. O is outer html - i.e. everything. Matches returned in valueArray
IEGetTagsByAttrib>{"https://www.google.ca/#spf=157237097133 ... valueArray

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 490
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Best way to avoid an error if an Internet Explorer Element is not found

Post by Dorian (MJT support) » Tue Oct 29, 2019 11:22 pm

I just responded to this question via your support ticket, as your question there contained more specifics.
Always accepting custom script commissions. Message me or go here

Post Reply