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

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

Thanks
Reply
#8
Solved: 11 Years, 3 Months, 2 Weeks ago
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 24,450 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 4,682 05-15-2008, 04:27 PM
Last Post: blanchedsouza

Forum Jump:


Users browsing this thread: 1 Guest(s)