01-14-2009, 01:07 PM
Sorry, I wasn't very clear.
The second page can be accessed if I make a record and after that I run the test. My problem is how to skip from a page to another page using descriptive programming. I do not use OBJECT REPOSITORY and the name of the web page is automatically retrieved.
Something like this:
#the Help button open a new page
Here is the problem. I do not know how to get the name of the second page using descriptive programming (SecondBrowserName=?, SecondTitlePageName=?)
Browser(SecondBrowserName).Page(SecondTitlePageName).Link("Adding a New Group").Click
Thanks
The second page can be accessed if I make a record and after that I run the test. My problem is how to skip from a page to another page using descriptive programming. I do not use OBJECT REPOSITORY and the name of the web page is automatically retrieved.
Something like this:
Code:
Set IE = CreateObject("InternetExplorer.Application")
IE.Navigate "http://xxxxxxxx.xx/"
IE.Visible = True
IE.Width = 850
IE.Height = 720
Function GetPageName(IE)
Do
wait(0.1)
Loop while IE.Busy = TRUE
GetPageName=IE.document.title
End Function
pageName = GetPageName(IE)
Set obj_DescAssert = Description.Create
BrowserName="name:="+pageName
TitlePageName="title:="+pageName
Browser(BrowserName).Page(TitlePageName).WebButton("Help").Click
Here is the problem. I do not know how to get the name of the second page using descriptive programming (SecondBrowserName=?, SecondTitlePageName=?)
Browser(SecondBrowserName).Page(SecondTitlePageName).Link("Adding a New Group").Click
Thanks