Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hiii. Could you clarify this doubt
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
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
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Try
Code:
s("micclass").value="WebEdit"
s("name").value="ctl00$ContentPlaceHolder1$txtUname"

instead of
Code:
s("micclass")="WebEdit"
s("name")="ctl00$ContentPlaceHolder1$txtUname"
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
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.
Reply
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
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.*")
Reply
#5
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,

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

Thanks,
Mahantesh
Reply
#6
Solved: 11 Years, 3 Months, 3 Weeks ago
oh...
Thank you both of you. Smile
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Logic doubt Prema 2 2,586 12-08-2010, 06:24 PM
Last Post: manishbhalshankar
  Doubt on Object Repository Rajashekar Gouda 1 2,512 05-03-2008, 03:43 AM
Last Post: niranjan

Forum Jump:


Users browsing this thread: 1 Guest(s)