Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem working with WebCheckBox
#10
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi guys,

Sorry for this lately reply because I was so busy in last few days. I'm happy to share with you guys my solution as below

Code:
Public sub    s_Delete_Mail (strSubject)
'Go to inbox
    Set yahoo = Browser("name:=^((Compose\sMail\s\-\s)|(\(\d+\sunread\)\s)|(Inbox\s(\(\d+\))?(\s)?\-\s))?Yahoo!\sMail(\:\sThe\sbest\sweb\-based\semail!)?$").Page("micclass:=Page")
    yahoo.Link("name:=^Inbox\s\(\d+\)$").Click

    Set inbox = Browser("name:=^((Compose\sMail\s\-\s)|(\(\d+\sunread\)\s)|(Inbox\s(\(\d+\))?(\s)?\-\s))?Yahoo!\sMail(\:\sThe\sbest\sweb\-based\semail!)?$").Page("micclass:=Page")

    Set inboxtable = Description.Create
    inboxtable("micclass").Value="WebTable"
    inboxtable("text").Value="^Inbox.*$"

    Set checkbox = Description.Create
    checkbox("micclass").Value="WebCheckBox"

    Set checkboxes = inbox.WebTable(inboxtable).ChildObjects(checkbox)
    row = inbox.WebTable(inboxtable).GetRowWithCellText(strSubject)-1
    checkboxes(row).Set "ON"

    inbox.WebButton("name:=Delete","html id:=top_del").Click

End Sub
Reply


Messages In This Thread
Problem working with WebCheckBox - by ngocvo3103 - 11-16-2010, 01:58 PM
RE: Problem working with WebCheckBox - by john_qa - 11-22-2010, 05:49 PM
RE: Problem working with WebCheckBox - by ngocvo3103 - 11-26-2010, 02:08 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)