Micro Focus QTP (UFT) Forums
Hiii. Could you clarify this doubt - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Hiii. Could you clarify this doubt (/Thread-Hiii-Could-you-clarify-this-doubt)



Hiii. Could you clarify this doubt - priya10it - 11-11-2012

Hiii Friends
I am facing this issue while executing script

Can anyone help me out
The test run cannot continue due to an unrecoverable error.

Object doesn't support this property or method: 's'

Line (1): "SystemUtil.Run "iexplore","http://preprod.inf.com/"".



I am not getting what is happening with my code
And below is my code




Code:
SystemUtil.Run "iexplore","http://preprod.inf.com/"
Browser("name:=::InfoSingle.*").Page("title:=::InfoSingle.*").Sync
Set s=Description.Create
s("micclass")="WebEdit"
s("name")="ctl00$ContentPlaceHolder1$txtUname"
Browser("name:=::InfoSingle.*").Page("name:=::InfoSingle.*").WebEdit(s).Set "abc"


Also i am facing cannt identify WebEdit class.
I dont know what is happening with my code
Could you please explain me how to reslove it,
It would be great help if you can suggest what to do
Thank you all


RE: Hiii. Could you clarify this doubt - manujohn23 - 11-12-2012

Try
Code:
s("micclass").value="WebEdit"
s("name").value="ctl00$ContentPlaceHolder1$txtUname"

instead of
Code:
s("micclass")="WebEdit"
s("name")="ctl00$ContentPlaceHolder1$txtUname"



RE: Hiii. Could you clarify this doubt - priya10it - 11-14-2012

John,
Thank you John.
But when i tired using your code it is not working.

I am getting the below error:
Cannot find the "[ WebEdit ]" object's parent "[ Browser ]" (class Browser). Verify that parent properties match an object currently displayed in your application.


It means it is not even identify the browser itself.
and also when i put . like
Browser("name:=::InfoSingle.*").Page("name:=::InfoSingle.*").....
it is not populating the webedit method in it.

Why this is happening like this?

can i script is a combination of static DP and dynamic DP.

Waiting for your reply John.


RE: Hiii. Could you clarify this doubt - manujohn23 - 11-15-2012

Can you try using:
Code:
Browser("micclass:=Browser").Page("micclass:=Page").Webedit(s).Set "Abc"
This should identify the particular webedit field.


And I guess the for using regular expressions with DP, the syntax should be like:

Code:
Browser("name:=InfoSingle.*").Page("name:=InfoSingle.*")



RE: Hiii. Could you clarify this doubt - hiregoudar - 11-20-2012

Hi,

Your syntax for DP is wrong please try with
Code:
Browser("name:=InfoSingle.*").Page("name:=InfoSingle.*").WebEdit(s).Set "abc"

Thanks,
Mahantesh


RE: Hiii. Could you clarify this doubt - priya10it - 11-21-2012

oh...
Thank you both of you. Smile