Using IE Elements to click a button without a name

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Dominic_Fichera
Pro Scripter
Posts: 82
Joined: Mon Mar 24, 2014 12:15 pm

Using IE Elements to click a button without a name

Post by Dominic_Fichera » Wed Aug 26, 2015 3:11 am

Hey guys,

Just wanna start with: WOO! My workplace FINALLY invested in Version 14 of Macro Scheduler. They've been using V8 for what feels like forever and they've finally seen the light! Now.... Onto more fun things...

I'm playing around with the IE Element Wizard and functions again, and am having some problems having the code "click" a button, since it doesn't have a name... The HTML looks like this:

Code: Select all

<input type="submit" value="Search Again">
as opposed to

Code: Select all

<input type="image" name="login" src="/global/res/images/login_white.gif" border="0" width="47" height="18" alt="login">
which is the code used for the login button to the website.

Any suggestions welcome! :)

Thanks,

Dominic Fichera

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Using IE Elements to click a button without a name

Post by Marcus Tettmar » Wed Aug 26, 2015 10:26 am

You can use any of the other attributes - e.g. value=Search Again.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts