Jump to content
Sign in to follow this  
konani

Find X, Y position of text in IE

Recommended Posts

konani

Hi all,

How I can find X, Y position of "COUNTRY" text in Internet Explorer in all following case?

Some case:

1.

<label id="lbCountry">COUNTRY</label>

2.

<html><body><br/><br/> Your COUNTRY is USA <p></body></html>

3.

<html><body><p><p> Your <span class="mandatory">COUNTRY</span> is USA <p></body></html>

Thanks in advance,

Edited by konani

Share this post


Link to post
Share on other sites
konani

What do you mean by X and Y? What is the goal here? To Click it?

X and Y are position of text when IE run. Position of text always change. I need determine X, Y position for play a function.

Share this post


Link to post
Share on other sites
tobject

Assuming you have IE object

$MyHtml=_IEBodyReadHTML($oIE);

$Position=StringInStr($MyHtml,"COUNTRY");

or use _IEBodyReadText($oIE) for text only

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.