J
johnguilbert
HI,
Really apreciated if someone could help.
I am trying to automate a number of clicks etc for a web site that has
been developed. However, this site has a number of frames in it. The
frame id = "header"contains a login I need to auto-populate. However
the syntax I am trying is not correct. How do I access a frame's html
from the main (base) document?
I have:
// retrieve base document
HTMLDocument myDoc = new HTMLDocumentClass();
myDoc = (HTMLDocument) axWebBrowser1.Document;
// this line is incorrect - it doesn't like this syntax
HTMLFrameElement otxtloginframe = (HTMLFrameElement)
myDoc.frames("header");
// retrieve document in frame 'header'
HTMLDocument myDoc2 = new HTMLDocumentClass();
myDoc2 = (HTMLDocument) otxtloginframe.document;
Any help really appreciated.
Thanks
John.
Really apreciated if someone could help.
I am trying to automate a number of clicks etc for a web site that has
been developed. However, this site has a number of frames in it. The
frame id = "header"contains a login I need to auto-populate. However
the syntax I am trying is not correct. How do I access a frame's html
from the main (base) document?
I have:
// retrieve base document
HTMLDocument myDoc = new HTMLDocumentClass();
myDoc = (HTMLDocument) axWebBrowser1.Document;
// this line is incorrect - it doesn't like this syntax
HTMLFrameElement otxtloginframe = (HTMLFrameElement)
myDoc.frames("header");
// retrieve document in frame 'header'
HTMLDocument myDoc2 = new HTMLDocumentClass();
myDoc2 = (HTMLDocument) otxtloginframe.document;
Any help really appreciated.
Thanks
John.