Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WebEdit name property
#1
Question 
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:-
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
Reply
#2
try with
Code:
objTextFiled("name").Regularexpression = "False"
Reply
#3
Not working. Getting type mismatch for regular expression line.
Reply
#4
try this...
objTextFiled ("name").regularExpression = False

search on help to get proper Syntax if this not work
Reply
#5
Same error. Type mismacth.
Reply
#6
try \ before to ignore QTP to indentify as a regular expression Like
Test\[\0\]\.zip
Reply
#7
wow. it worked for me when I used Test\[0\]\.zip insrtead of Test\[\0\]\.zip .

Thanks
Reply
#8
Great......
You not blindly following
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  VALUE, INNERTEXT property from WebEdit and WebElement objects AGE_WACH 4 25,670 12-22-2008, 04:43 PM
Last Post: bfakruddin
  how to check checkbox's readonly property if developer has not used this property blanchedsouza 0 5,043 05-15-2008, 04:27 PM
Last Post: blanchedsouza

Forum Jump:


Users browsing this thread: 1 Guest(s)