Hi,
You have mentioned 3 pluses in the example and want to click the 3rd one(If I got you right).
One question here, is the number of pluses always 3 or it changes everytime?
If it is always 3, then go by index property(Possibly index:=2 will do)
If it is not, then again one question, do you want to click the plus sign beside "efg" every time or you wanna click the last one? If the "efg" one always then again, go by index property.
Else if the last one and the number of buttons changes everytime, try the code below,
Hope this will solve your purpose.
You have mentioned 3 pluses in the example and want to click the 3rd one(If I got you right).
One question here, is the number of pluses always 3 or it changes everytime?
If it is always 3, then go by index property(Possibly index:=2 will do)
If it is not, then again one question, do you want to click the plus sign beside "efg" every time or you wanna click the last one? If the "efg" one always then again, go by index property.
Else if the last one and the number of buttons changes everytime, try the code below,
Code:
Set wButton = Description.Create
wButton("micclass").Value = "WebButton"
wButton("name").Value = "+" //Please check name is "+" or anything else
Set allWButtons = Browser("BrowserName").Page("PageName").ChildObjects(wButton)
getButtonCount = allWButtons.Count //It will get you the total number of "+" buttons in you app
allWButtons(getButtonCount - 1).Click //It will click on the last "+" button
Hope this will solve your purpose.