Hi Rajiv Joshi,

The problem is, most of the cases, browser dont take "title" property. Try 
with "name" property
Set LG_BRPG=Browser("name:=Login Page.*").Page("title:=Login Page.*")

Put a wait statement after and watch the variable like LG_BRPG.exist. If it 
returns true, you are good and you will see your expected behavior.

For QTP Videos, watch my blog at below location.

Thanks,
Uday
QTP / UFT Videos <http://qtpftvideos.blogspot.in>

On Tuesday, 17 February 2015 13:52:55 UTC+5:30, Rajiv Joshi wrote:
>
> Hi.
>
> Im getting error message as : Object doesn't support this property or 
> method: 'LG_BRPG.WebObject' below are the details.
>
> Calling Login function :
>
> Function file: F:\CS1\Login.vbs
>
> Function Login(username,password)
> Set ie=createobject("internetexplorer.application")
> ie.visible=true
> ie.navigate "https://*****************************";
> wait(7)
> 'Browser("title:=Login Page.*").sync
> Set LG_BRPG=Browser("title:=Login Page.*").Page("title:=Login Page.*")
> LG_BRPG.WebObject("input name:=ctl00$Content1$txtUserName","html 
> id:=ctl00_Content1_txtUserName").Set username
> LG_BRPG.WebObject("input name:=ctl00$Content1$txtPassword","html 
> id:=ctl00_Content1_txtPassword").Set password
> LG_BRPG.WebButton("input name:=ctl00$Content1$btnLogin","html 
> id:=ctl00_Content1_btnLogin").Click 
> wait(3)
> End Function
>
> Error Line (12): "LG_BRPG.WebObject("input 
> name:=ctl00$Content1$txtUserName","html 
> id:=ctl00_Content1_txtUserName").Set username".
>
> Please help me out in solving this issue.
>
> Regrads.
> Rajiv Joshi
>

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