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
Identifying objects
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
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.
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?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?