Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to detect send button on compose mail page of gmail
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
On Compose mail page of gmail, there are 2 Send buttons and when i running
the following code :

Code:
Browser("Gmail: Email from Google").Page("title:=Gmail - Compose Mail").WebButton("name:=Send", "html tag:= INPUT", "type:= submit").Click

It is showing error for identification as 2 send buttons with same properties are present.

Can anybody provide solution to this problem?
Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
try adding the index...

Code:
WebButton("name:=Send" , "html tag:=INPUT" , "type:=Submit" , "index:=0")
Reply
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
I tried this also
but its showing object doesn't support this property..
Reply
#4
Solved: 11 Years, 4 Months, 3 Weeks ago
i usually don't bother with the "browser" and "page" and always add them to repository... and after that this is the code i tried, and it's working for me... and i'm assuming you're using Basic HTML view of Gmail.
Code:
Dim SendBtn
Set SendBtn = Description.Create()

SendBtn("name").value = "Send"
SendBtn("micclass").value = "WebButton"
SendBtn("type").value = "submit"
SendBtn("index").value = "0"

Browser("Gmail - Compose Mail").Page("Gmail - Compose Mail").WebButton(SendBtn).Click
Reply
#5
Solved: 11 Years, 4 Months, 3 Weeks ago
Thanks...
after using descriptive programming...its working
Reply
#6
Solved: 11 Years, 4 Months, 3 Weeks ago
and this also worked for me.
Code:
Browser("Gmail - Compose Mail").Page("Gmail - Compose Mail").WebButton("name:=Send" , "type:=submit" , "index:=0").Click

please note that QTP must be launched before the browser, otherwise issues arise in object identification,
which OS, Browser and QTP version are you using?



glad to be of help Smile
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to send/pass UFT Run Error Dialog as output value to main driver script lravi4u 0 635 11-05-2023, 03:55 PM
Last Post: lravi4u
  Send automatic email notification when test run started helmzshelmz 0 1,116 04-03-2020, 07:54 AM
Last Post: helmzshelmz
  To send Fail Results to mail Naresh 1 2,560 04-23-2015, 08:30 PM
Last Post: babu123
  To send the QTP Results to mail using Thunderbird Naresh 0 2,425 04-03-2015, 03:19 PM
Last Post: Naresh
  How to delete particular mails in Gmail using QTP rajkumarsm 1 4,200 10-06-2014, 07:03 PM
Last Post: rajkumarsm

Forum Jump:


Users browsing this thread: 1 Guest(s)