Contributions
Re: IE status bar alert sign
Its unclear what you mean by "extended section". The image from a few posts ago shows the object - nothing's changed. Attached the zipped up project suite as indicated. The test itself is in the Testing script unit. Right now it'll produce a runtime error, I suspect because the wImage(0) object does not exist (at least it doesn't show in the object browser) - if one removes it the code runs, but with the logic error that is not trapping what I need it to.912Views0likes0Comments- 2.3KViews0likes0Comments
- 2.3KViews0likes0Comments
IE status bar alert sign
I'm attempting to find the object or property within an Internet explorer session for the Yield Exclamation sign in the bottom left hand corner - Status bar. Its the only thing apparent when pages return java script errors of a certain type. I've used the finder tool, but it only returns Sys.Process("iexplore").IEFrame(0).Tab("http://jpidev02.jpidev.com/gsa/pipadmin.nsf/jserror?OpenForm - Windows Internet Explorer").Window("msctls_statusbar32", "", 1) which doesn't seem to indicate that error status. You see the same .Window("msctls_statusbar32", "", 1) in cases when there isn't an error. Any thoughts?18KViews0likes13CommentsSearching for text
I'm searching for an effecient way to look at the loaded page and search for some text, specifically the text one can expect if the page returns a javascript error or finds no matching documents, which the developers have made global. The trouble is I can not predict exactly where it'll be on the page. I've tried using an if .... exists statement, but then I get a bunch of errors as its trying to find the frame I typically see the text appearing in which isn't there if the page does load/present documents properly, if that makes sense. My next thought was FindAllChildren, but then I'd find myself looking at an array, which I guess is possible, but seems cludgey somehow. Any thoughts? TIA - Dave Got the findallchildren logic working, but still seems cludgey20KViews0likes37CommentsSearching the Object browser
I find it necessary quite often to dig through the object browser when trying to automate web page testing. It would be so nice to have a 'Find' function to speed things up. Elements on web pages can be buried 12, 15, even 20 levels deep, making it very difficult to find them. Very similiar to finding things within regedit, but it has a find function. Is there anything similiar within Test Complete? Thanks!19KViews0likes1CommentRe: ToURL method
I think I finally got it worked out. After beating my head against the wall about the readystate property, I finally found that it was returning a value of 4 immediately, even while the page was still loading. So I dug a little deeper in the Object Browser and found the each one of the main frames had a readystate value, but in this case it was a text string - either "loading" or "completed". So I isolated the frame in question and used it in the loop that checks for its value, and voila - seems to work: call iexplore.ToURL(Project.Variables.server & "gsa/webbas01.nsf/(vwWebPage)/Webbase.htm?OpenDocument&Set=1,Scope=RSLU____,App=Basics__________,Select=P-Active,") iexplore.ToURL(.Variables.server & "gsa/webbas01.nsf/(vwWebPage)/Webbase.htm?OpenDocument&Set=1,Scope=RSLU____,App=Basics__________,Select=P-Active,") set pg1 = iexplore.Page(Project.Variables.server & "gsa/webbas01.nsf/(vwWebPage)/Webbase.htm?OpenDocument&Set=1,Scope=RSLU____,App=Basics__________,Select=P-Active,").Frame("fraMain") waitFrm = True While waitFrm msgbox(pg1.readystate) waitFrm = waitFrm And (pg1.readyState = "loading") If waitFrm Then aqUtils.Delay 100 End If WEnd Gotta love that Object Browser!!2KViews0likes0Comments