Sign in to follow this  
Followers 0
cent

Retrieving value

3 posts in this topic

Hello,

I am trying to read some values (message title) on a yahoo mail page. The value i am interested in is located in a NOBReak and a SPAN, i have tried to extract it by a _IEGetObjById($oIE,"0_messageHeaderSubject_text"). But it doesn't seems to work as it refuses to return "id","class" or "innertext".

This the xpath : html/body/div/div/table/tbody/tr/td/div/div/iframe/html/body/div/div/div/div/div/nobr/span

And here is what the source looks like :

<nobr class="cgSelectable" id="0_messageHeaderSubject_text">
<span title="Afficher tous les mails affectés de cet objet" style="cursor: pointer;" class="cgSelectable" cmd="msgaction_ext:subjectSearch" widget="">
The value i am interested in !
</span>
</nobr>

Any help or hints is welcome !

Share this post


Link to post
Share on other sites



Very nice job of including the XPath.

You need to get a reference to the iframe first, because it's treated as a new HTML document. Then, from the iframe get a reference to the object you want.

$oiFrame = _IEFrameSomethingSomething ..

_IEGetObjById($oiFrame,"0_messageHeaderSubject_text")

Share this post


Link to post
Share on other sites

Very nice job of including the XPath.

You need to get a reference to the iframe first, because it's treated as a new HTML document. Then, from the iframe get a reference to the object you want.

$oiFrame = _IEFrameSomethingSomething ..

_IEGetObjById($oiFrame,"0_messageHeaderSubject_text")

Thanks for your help, it's working at last ^^!

In my first test i never used the "_IEFrameGetObjByName", and i was trying lame-fully with the frame-less one !

ps: I love your avatar !

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