Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to click one '+' out of many '+'
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
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,

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.
Reply


Messages In This Thread
RE: how to click one '+' out of many '+' - by PrabhatN - 11-25-2010, 03:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Right Click On a Image and Click on a Link in WebElement RameshKrishnan 4 5,403 07-10-2013, 04:13 PM
Last Post: RameshKrishnan
  How do I left click on the right click menu in WinTreeView? RandomGrin 0 3,917 12-22-2012, 04:22 AM
Last Post: RandomGrin
  How do I left click on the Right click menu? RandomGrin 2 4,213 12-18-2012, 09:47 PM
Last Post: RandomGrin

Forum Jump:


Users browsing this thread: 6 Guest(s)