Micro Focus QTP (UFT) Forums

Full Version: Not able to record Compose Mail WebElement from Gmail.com
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello All,

I want to record Compose Mail WebElement from Frame v1, but i tried a lot but i am not able to record Compose mail, even i write some descriptive programming but it shows Frame v1 is not found, i save Frame v1 in object repository, so can anybody please help me out, hoping for cooperation

Thanks
Mahesh
Hello All,

I want to record Compose Mail WebElement from Frame v1, but i tried a lot but i am not able to record Compose mail, even i write some descriptive programming but it shows Frame v1 is not found, i save Frame v1 in object repository, so can anybody please help me out, hoping for cooperation

Thanks
Mahesh
Hello All,

I achieve the same one,


Code:
Dim NumberOfEdits, webElementToSearch
webElementToSearch="<B>Compose Mail</B>"
Set oDesc = Description.Create
oDesc("html tag").Value = "B"
oDesc("micclass").Value = "WebElement"
oDesc("innertext").Value = "Compose Mail"
oDesc("outertext").Value = "Compose Mail"
oDesc("innerhtml").Value = "Compose Mail"
oDesc("outerhtml").Value = "<B>Compose Mail</B>"

Set EditCollection = Browser("title:=Gmail").Page("title:=Gmail.*").ChildObjects(oDesc)

NumberOfEdits = EditCollection.Count


For i = 0 To NumberOfEdits - 1
    If EditCollection(i).GetROProperty("outerhtml") = webElementToSearch Then
      EditCollection(i).Click
    End If

Next

Thanks
Mahesh