11-26-2009, 11:43 AM
(This post was last modified: 11-26-2009, 11:56 AM by upadhyay40.)
Dear All,
When i try to take spy for Browse button it select whole text of logofilename & browse button together, i am unable to take spy for separate Browse button. I write descriptive programming for click on Browse button but i am unsuccessfull, Can anybosy just let me know how would i click on Browse so it open a window to select(Browse) file.
My code is:
Please help me out, hoping for cooperation
Thanks
Mahesh
Hello All,
I got the solution,need for some setting
1. Select Tools>>Web Event Recording Configuration>>Custom Settings
2. On the left hand side, select WebFile in the Standard Web Objects branch of the Objects pane
3. Select Event>>Add>>onclick
4. Select Always in the Listen column for this event
good luck
Thanks
Mahesh
When i try to take spy for Browse button it select whole text of logofilename & browse button together, i am unable to take spy for separate Browse button. I write descriptive programming for click on Browse button but i am unsuccessfull, Can anybosy just let me know how would i click on Browse so it open a window to select(Browse) file.
My code is:
Code:
Public Function ClickBrowseWebFile()
Dim NumberOfEdits, webElementToSearch
webElementToSearch="bannerlogo"
Set oDesc = Description.Create
oDesc("html tag").Value = "INPUT"
oDesc("micclass").Value = "WebFile"
oDesc("name").Value = "bannerlogo"
Set EditCollection = Browser("title:=Publish").Page("title:=Publish.*").ChildObjects(oDesc)
NumberOfEdits = EditCollection.Count
MsgBox(NumberOfEdits)
For i = 0 To NumberOfEdits - 1
If EditCollection(i).GetROProperty("name") = webElementToSearch Then
EditCollection(i).Click
End If
Next
End Function
Please help me out, hoping for cooperation
Thanks
Mahesh
Hello All,
I got the solution,need for some setting
1. Select Tools>>Web Event Recording Configuration>>Custom Settings
2. On the left hand side, select WebFile in the Standard Web Objects branch of the Objects pane
3. Select Event>>Add>>onclick
4. Select Always in the Listen column for this event
good luck
Thanks
Mahesh