Hi Rajiv,
*webobject??* what is that object, I think Webobject should be webedit.
please try the below code. this should work
I have highlighted the change which i have done
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.*WebEdit*("input name:=.*txtUserName").Set username
LG_BRPG.*WebEdit*("input name:=.*txtPassword").Set password
LG_BRPG.WebButton("input name:=.*btnLogin").Click
wait(3)
End Function
Thanks,
On Tuesday, February 17, 2015 at 12:22:55 PM UTC+4, 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.