Hi Rajiv,

I am not able to click on Delete buttons, The index properties are chaining
randomly.
please guide me how to handle this issue.

Thanks,
Venkat

On Sat, Feb 26, 2011 at 2:13 AM, Rajiv Nanduani <
[email protected]> wrote:

> Use until loop statement  while older link is exist
>
>
> On Sat, Feb 26, 2011 at 12:58 AM, Venkat Boin <[email protected]>wrote:
>
>> Hi Rajiv,
>>
>> I written script for deleting particular mails in the first page only
>>
>> Please find the scripts as below:
>>
>> 'This is script is for selecting the particular mails and deleting that
>> mails using Shell scripts
>> If Browser("CreationTime:=0").Page("title:=Gmail - Inbox.*",
>> "index:=0").Frame("html tag:=IFRAME","name:=c.*").WebElement("html
>> tag:=SPAN","innertext:=Older ›").Exist Then
>>
>>     mailtext="Monster"
>>     rowcount=Browser("CreationTime:=0").Page("title:=Gmail - Inbox.*",
>> "index:=0").Frame("html tag:=IFRAME","name:=c.*").WebTable("html
>> tag:=TABLE","index:=4").RowCount
>>     For i=1 to rowcount
>>     row=i
>>     set checkbox= Browser("CreationTime:=0").Page("title:=Gmail -
>> Inbox.*", "index:=0").Frame("html tag:=IFRAME","name:=c.*").WebTable("html
>> tag:=TABLE","index:=4").ChildItem(row, 1, "WebCheckbox", 0)
>>     Set id=Browser("CreationTime:=0").Page("title:=Gmail - Inbox.*",
>> "index:=0").Frame("html tag:=IFRAME","name:=c.*").WebTable("html
>> tag:=TABLE","index:=4").ChildItem(row, 3, "WebElement", 0)
>>     mail= id.getroproperty("innertext")
>>     'msgbox mail
>>     pos=instr (1,mail,mailtext)
>>
>>     If pos>=1 Then
>>     Checkbox.set "ON"
>>     End If
>>
>>     Next
>> Browser("CreationTime:=0").Page("title:=Gmail - Inbox.*",
>> "index:=0").Frame("html tag:=IFRAME","name:=c.*").WebElement("html
>> tag:=SPAN","innertext:=Older ›").Click
>> Set WshShell=CreateObject("wscript.shell")
>> WshShell.SendKeys"{ENTER}"
>>
>>
>> Please guide me how to delete mails form all pages.
>>
>> Thanks,
>> Venkat
>>
>>
>> On Sat, Feb 26, 2011 at 12:34 AM, <[email protected]> wrote:
>>
>>> can you post ur script what you are using ?
>>>
>>> On Feb 26, 2011 12:12am, Venkat Boin <[email protected]> wrote:
>>> > Hi Rajiv,
>>> >
>>> > I have used childObjects method for particular page its showing number
>>> of counts of delete buttons are 6, so I am not able to click on Delete
>>> buttons because there Indexes are changing randomly when I moved to next
>>> page
>>> >
>>> >
>>> > Could you please provide QTP script for this issue?
>>> >
>>> >
>>> > Thanks,
>>> > Venkat
>>> >
>>> >
>>> >
>>> > On Fri, Feb 25, 2011 at 11:15 AM, Rajiv Nanduani
>>> [email protected]> wrote:
>>> >
>>> > But how it is impacting your script, you just use index =0. it will
>>> always find the first one and both delete button will do same functionality
>>> either you click upper delete button or lower one.
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > On Thu, Feb 24, 2011 at 1:46 PM, Venkat Boin [email protected]>
>>> wrote:
>>> >
>>> >
>>> > Hi Ravi,
>>> >
>>> > I am able to delete first page mails successfully, but I want to delete
>>> all mails of particular address/subject from all pages,
>>> >
>>> > I have tried to delete all mails from older pages and I observed that
>>> when we tried to click on "Delete" button. The "Delete" (Upper/Lower)
>>> buttons indexes are changing randomly when I moved to older pages
>>> >
>>> >
>>> >
>>> >
>>> > Could you please guide me how to handle this issue?
>>> >
>>> > I am waiting for your reply, Thanks in advance
>>> >
>>> > Thanks,
>>> > Venkat
>>> >
>>> >
>>> >
>>> > On Thu, Feb 24, 2011 at 9:07 AM, Rajiv Nanduani
>>> [email protected]> wrote:
>>> >
>>> > first gmail search functionality with particular address or particular
>>> subject it will show all the mails with that filter criteria.
>>> >
>>> >
>>> >
>>> > After that click delete all
>>> >
>>> > record all this step from QTP
>>> >
>>> > :)
>>> >
>>> >
>>> >
>>> > On Thu, Feb 24, 2011 at 7:15 AM, Venkat Boin [email protected]>
>>> wrote:
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > Hi All,
>>> >
>>> > How to delete all the G-mail inbox mails(all the pages) coming from
>>> particular address or particular subject?
>>> >
>>> > Thanks in advance
>>> >
>>> >
>>> > With regards,
>>> > Venkat
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> >
>>> > You received this message because you are subscribed to the Google
>>> >
>>> > "QTP - HP Quick Test Professional - Automated Software Testing"
>>> >
>>> > group.
>>> >
>>> > To post to this group, send email to [email protected]
>>> >
>>> > To unsubscribe from this group, send email to
>>> >
>>> > [email protected]
>>> >
>>> > For more options, visit this group at
>>> >
>>> > http://groups.google.com/group/MercuryQTP?hl=en
>>> >
>>> >
>>> > --
>>> > RAJIV KUMAR
>>> >
>>> > http://rajivkumarnandvani.wordpress.com/>
>>> >
>>> >
>>> >
>>> >
>>> > http://learnqtphelp.blogspot.com/>
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> >
>>> > You received this message because you are subscribed to the Google
>>> >
>>> > "QTP - HP Quick Test Professional - Automated Software Testing"
>>> >
>>> > group.
>>> >
>>> > To post to this group, send email to [email protected]
>>> >
>>> > To unsubscribe from this group, send email to
>>> >
>>> > [email protected]
>>> >
>>> > For more options, visit this group at
>>> >
>>> > http://groups.google.com/group/MercuryQTP?hl=en
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > RAJIV KUMAR
>>> >
>>> > http://rajivkumarnandvani.wordpress.com/>
>>> > http://learnqtphelp.blogspot.com/>
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>>
>>
>>
>
>
> --
> RAJIV KUMAR
>
> <http://rajivkumarnandvani.wordpress.com/>
> <http://learnqtphelp.blogspot.com/>
>
>
>

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to