In this case there are no need to use ordinal identifier to identify the
objects of browser("title=Gmail")

THANKS
AKHALESH
On 3 May 2015 12:36, "Ayaz Ahmed" <[email protected]> wrote:

> SystemUtil.Run "iexplore.exe", "https://accounts.google.com/";
> wait 5
> Browser("title:=Sign in - Google Accounts","index:=0").Page("title:=Sign
> in - Google Accounts").WebEdit("name:=Email","index:=0").set "
> [email protected]"
> Browser("title:=Sign in - Google Accounts","index:=0").Page("title:=Sign
> in - Google Accounts").WebEdit("name:=Passwd","index:=0").set "Google"
> Browser("title:=Sign in - Google Accounts","index:=0").Page("title:=Sign
> in - Google Accounts").WebButton("name:=Sign in","index:=0").click
>
>
> Main mistake wrong web address. :)
>
> On Saturday, May 2, 2015 at 12:09:08 PM UTC-4, Rocky wrote:
>>
>> Hi..
>>
>> I am a beginner to QTP . I have some problem with object identification
>> when using descriptive programming for login into gmail
>>
>> Please find the code below
>>
>>  SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe", "
>> www.gmail.com"
>>
>> Browser("CreationTime:=0").Page("title:=Sign in - Google Accounts")
>> .WebEdit("name:=Email").set "[email protected]"
>> Browser("CreationTime:=0").Page("title:=Sign in - Google Accounts")
>> .WebEdit("name:=Passwd").set "password"
>>
>> Browser("CreationTime:=0").Page("title:=Sign in - Google Accounts")
>> .WebButton("name:=Sign in").click
>>
>> -----------------------------------------------------------------------------------------------------------------------------------------------------
>> Error:
>>
>> Cannot find the "[ WebEdit ]" object's parent "[ Page ]" (class Page).
>> Verify that parent properties match an object currently displayed in your
>> application.
>>
>> Line (3): "Browser("CreationTime:=0").Page("title:=Sign in - Google
>> Accounts").WebEdit("name:=Email").set "[email protected]"".
>>
>> Tip: If the objects in your application have changed, the Maintenance Run
>> Mode can
>> help you identify and update your steps and/or the objects in your
>> repository.
>>
>>
>> Please suggest . Why this is happening with my system. Most of the time
>> when using browser this is happening.
>>
>>
>>  --
> --
> 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
>
> ---
> You received this message because you are subscribed to the Google Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to