Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem in identifying webbutton
#1
Not Solved
Hi,
I have a problem in identifying the webbutton.

The only property that a webbutton differs from the other is outerhtml.
The outhtml of webbutton is:<INPUT onclick=doCopy(1) type=button value=c name=method>
I dont want to click the first webbutton, i want to click the other webbuttons
Iam using the following code

Code:
Set WbEdit = Description.Create()
WbEdit("micclass").Value = "WebButton"
WbEdit("name").Value = "C"
Set AllWbEdit = Browser("micclass:=browser").Page[/b]("micclass:=Page").ChildObjects(WbEdit)
        NumberOfEdits=AllWbEdit.Count
        msgbox NumberOfEdits
        For i=0 to(NumberOfEdits)-1
          if AllWbEdit(i).GetRoproperty("outerhtml")<>".*doCopy(0).*"  then
             AllWbEdit(i).Click
             End If
             Next
It does give the count, but it does not filter.probabily my representation of outerhtml is going wrong.
i tried with index, even the index is not working.
i want to exactly represent the outerhtml, this may solve my problem.
Any help will be really appreciated.
Regards;
Vijay
Reply
#2
Not Solved
See if this works:

in if condition place this
Code:
AllWbEdit(i).GetRoproperty("outerhtml")<>".*doCopy\(0\).*"
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to click on the WebButton with specified Index srach84 2 4,298 03-31-2015, 04:36 AM
Last Post: srach84
  Unable to click on WebButton in WebTable srach84 1 3,106 02-09-2015, 09:07 PM
Last Post: arpan
  Problem in identifying the object Paras Singh 3 3,300 04-22-2013, 07:43 AM
Last Post: ravi.gajul
  problem in identifying menubar items in vb application ria 0 1,907 02-18-2010, 10:19 PM
Last Post: ria
  Problem in identifying link vijay44 2 2,187 02-09-2010, 10:08 AM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)