cent Posted February 25, 2010 Posted February 25, 2010 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 !
jvanegmond Posted February 25, 2010 Posted February 25, 2010 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") github.com/jvanegmond
cent Posted February 25, 2010 Author Posted February 25, 2010 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 !
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now