04-13-2011, 01:09 PM
(This post was last modified: 04-13-2011, 01:11 PM by Charanpreet.)
WebEdit name property contains value as Test[0].zip. But whle running the script am unable to recognize the object.
Am using following code snippet:-
I think in name since [] and . is used. This might be creating problem. How can I handle this type of name of object. IF REGEX is used, then how can i use it.
Thanks
Am using following code snippet:-
Code:
Set objTextField=Description.create()
objTextField("micclass").Value = "WebEdit" 'className
objTextField("html tag").Value = "INPUT" 'html tag
objTextField("name").Value = "Test[0].zip"
Set objBrowser=Description.create()
objBrowser("micclass").Value = "Browser" 'className
objBrowser("title").value = "R.*" 'Object Name title
Set objPage=Description.create()
objPage("micclass").Value = "Page" 'className
objPage("title").value = "R.*" 'Object Name title
Browser(objBrowser).Page(objPage).WebEdit(objTextField).set "1235"
Set objTextField = nothing
Set objBrowser = nothing
Set objPage = nothing
I think in name since [] and . is used. This might be creating problem. How can I handle this type of name of object. IF REGEX is used, then how can i use it.
Thanks