Extracting TAGX and TAGY
Forum rules
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Extracting TAGX and TAGY
How can I extract the position of an HTML element? I want to do so, because I have an AJAX issue. The only way to know that if a page finished loading is with the position of a button.
I'm working in c#.
Thanx
I'm working in c#.
Thanx
- Tech Support
- Posts: 4948
- Joined: Tue Sep 20, 2005 7:25 pm
- Contact:
Re: Extracting TAGX and TAGY
In the macro please use:
In the code please use:
Code: Select all
ADD !EXTRACT {{!TAGX}}
ADD !EXTRACT {{!TAGY}}
Code: Select all
i = iim1.iimPlay ("macro name")
x = iim1.iimGetLastExtract (1)
Y = iim1.iimGetLastExtract (2)
Re: Extracting TAGX and TAGY
Available for custom iim, javascript iMacros scripts
-
- Posts: 3834
- Joined: Mon May 31, 2010 4:59 pm
Re: Extracting TAGX and TAGY
Hi techimac,techimac wrote: ↑Mon Feb 08, 2021 6:26 pmhttps://wiki.imacros.net/!TAGX
whats the command for iMacros 8.9.7?
There currently is no equivalent for !TAGX or !TAGY in iMacros for Firefox or Chrome.
Regards,
Tom, iMacros Support
Tom, iMacros Support
Re: Extracting TAGX and TAGY
I found this
getBoundingClientRect()
It can be used to get X,Y
getBoundingClientRect()
It can be used to get X,Y
Available for custom iim, javascript iMacros scripts
-
- Posts: 3834
- Joined: Mon May 31, 2010 4:59 pm
Re: Extracting TAGX and TAGY
Example code
Code: Select all
var a = window.document.getElementById("abc");
var r = a.getBoundingClientRect();
x = r.left;
y = r.top;
Available for custom iim, javascript iMacros scripts