Sign in to follow this  
Followers 0
shutch00

Clicking Javascript link in a web application

3 posts in this topic

In the app is a table (see attachment).  In the first column there is an edit link for each row.  I need to write a script that clicks the edit link, performs a task, and then moves onto the next row where it repeats.

The problem is that I can't figure out how to click the edit link.  I don't want to use mouse coordinates because they change depending on the data (column widths and row heights and such).

It's in IE but the edit link itself is a javascript link.  When I right click the edit links and select properties, I see something like javascript:openOrderForm('6484166', '219021');

post-65933-0-99186600-1371674843_thumb.j

Share this post


Link to post
Share on other sites



Use the _ie functions.

Grab the table object

Grab the tr elements in the table

loop through the tr elements, and focus on the td (cell) which contains the link

click on the child object of the cell...use an html spy to get the details of the link, and post them back


IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

This will take a good deal of research on my end as I am not too familiar with the _ie functions.  Thanks for pointing me in the right direction!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0