Hi guys,
In my application in side the frame few buttons are available like add, delete, filter...
I could recognize the frame by using index number. now i want to count the no.of buttons in the frame(it is grid)
Here I can able to click the single button individually with name property.
I f i follow this i have to write function for each button individually. I do not want this.
If i have buttons count based on that count i will click on particular button.
I tried with the following code but i'm getting the type mismatch error.
please find the attachement for error.
any one knows the solution.
pls providethe solution ASAP.
Thanks in Advance!
In my application in side the frame few buttons are available like add, delete, filter...
I could recognize the frame by using index number. now i want to count the no.of buttons in the frame(it is grid)
Here I can able to click the single button individually with name property.
I f i follow this i have to write function for each button individually. I do not want this.
If i have buttons count based on that count i will click on particular button.
I tried with the following code but i'm getting the type mismatch error.
Code:
Set WebBrowserDesc=Description.Create
WebBrowserDesc("application version").value="internet explorer 8"
WebBrowserDesc("title").value="http://172.16.220.24/Proof/PageManager.aspx"
Set WebPageDesc=Description.Create
WebPageDesc("url").value="http://172.16.220.24/Proof/PageManager.aspx"
Set WebFrameDesc=Description.Create
WebFrameDesc("html tag").value="IFRAME"
'WebFrameDesc("title").value="PROOF - ISpace"
WebFrameDesc("Index").value="5"
Set WeButtonDesc=Description.Create
WeButtonDesc("type").value="submit"
WeButtonDesc("html tag").value="INPUT"
'WeButtonDesc("name").value="Add"
WeButtonDesc("micclass").value="WebButton"
Set objwebbutton=Browser(WebBrowserDesc).Page(WebPageDesc).Frame(WebFrameDesc).ChildObjects(WebButtonDesc)
msgbox objwebbutton.Count
please find the attachement for error.
any one knows the solution.
pls providethe solution ASAP.
Thanks in Advance!