Hi Pete, You can try the following code as well whihc i tried fior my AUT
Set TabObj=SwfWindow(Application).SwfWindow(WindowName).SwfObject(TabObject).Object TabCount=TabObj.TabPages.Count For i=1 to TabCount-1 TabText=Trim(TabObj.SelectedTabPage.Text) If StrComp(TabText,TabName)=0 Then Exit For Else TabObj.Focus() TabObj.Focus() SwfWindow(Application).SwfWindow(WindowName).SwfObject(TabObject).Type micRight End If wait 1 Next On Mon, Jan 11, 2010 at 11:36 AM, siva prasad <[email protected]>wrote: > Hi Pete, > > Using descriptive programming you can work with the windows application. > Windows have have a unique id called WindowID with which we control the > window through script. > > > > On Mon, Jan 11, 2010 at 4:07 PM, Pete <[email protected]> wrote: > >> Hello everyone, >> >> Below is a script that allows me to select each tab within the screen, >> but the problem is I have multiple tabs within the same window frame >> with no unique properities and everytime I try to run the script I get >> an error message indicating that it doesn't recongize the object b/c >> the coordinates changed again. Is there anyway to script this some >> other way beside the coordinates? >> >> VbWindow("CWMainForm_6").VbWindow("AnPMainView_2").ActiveX(":-) >> VideoSoft Elastic_6").ActiveX(":-) VideoSoft Elastic").ActiveX(":-) >> VideoSoft IndexTab").Click 181,15 >> >> -- >> You received this message because you are subscribed to the Google >> "QTP - HP Quick Test Professional - Automated Software Testing" >> group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected]<mercuryqtp%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/MercuryQTP?hl=en >> > > > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<mercuryqtp%[email protected]> > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en >
-- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
