Identifying objects

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Ad11
Newbie
Posts: 3
Joined: Tue Jun 05, 2012 11:25 am

Identifying objects

Post by Ad11 » Tue Jun 05, 2012 12:49 pm

Hi,
We have installed professional version of macro scheduler and i'm working on WebRecorder tool. I would like to know how to identify a object on a web application and use it in the script instead of using the mouse click commands.
thanks

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

Post by Marcus Tettmar » Thu Jun 14, 2012 2:41 pm

Generally, the easiest way is just to record clicking on the object, or filling the field, with WebRecorder, and WebRecorder will identify and record the code for you.

If you want to do it manually, then an understanding of HTML will help.

You can identify objects by looking at the source of the page (right click/view source) and searching. Look for some text that appears near the object and you will usually find it. Find the tag and then look to see what identifying attribute it might have.

A slightly easier way - in IE hit F12 and you'll get IE's developer tools and you can search the HTML.

Even better is to use Chrome. Navigate to the page with Chrome, and right click right on the object in question and select "Inspect Element" and this will take you direct to this element in the source of the page.
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