Micro Focus QTP (UFT) Forums
how resolve "webedit" cannot identify - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: how resolve "webedit" cannot identify (/Thread-how-resolve-webedit-cannot-identify)



how resolve "webedit" cannot identify - jabap4 - 04-22-2015

[attachment=1361]
Cannot identify the object "[ WebEdit ]" (of class WebEdit). Verify that this object's properties match an object currently displayed in your application.


RE: how resolve "webedit" cannot identify - Naresh - 04-22-2015

HI,

Take Few more html properties of Webedit(Ex: class,html id,htmal tag..)


RE: how resolve "webedit" cannot identify - jabap4 - 04-23-2015

Hi Naresh .
I am try to write my own code element properties using object spy

Code:
Option Explicit
Dim MyBrowser
Dim MyPage
Dim MyWebEdit
Dim Num_Ber
'Step 1: Open browser and  navigate  to http://www.mortgagecalculator.org/
navigate_browser("http://www.mortgagecalculator.org/")
'step 2: Enter Required data
Set MyBrowser=Browser("name:=Mortgage Calculator")
Set MyPage=Page("title:=Mortgage Calculator")
Set MyWebEdit=WebEdit("name:=param[homevalue]")
'Set Num_Ber=100000
'Updated by test maintenance run

'Browser("name:=Mortgage Calculator").Page("title:=Mortgage Calculator").WebEdit("name:=param[homevalue]").Set "100000"
Browser(MyBrowser).Page(MyPage).WebEdit(MyWebEdit).Set 100000

Browser(MyBrowser).Page(MyPage).WebEdit("name:=param[principal]").Set "80000"

Browser(MyBrowser).Page(MyPage).WebEdit("name:=param[interest_rate]").Set "5"

Browser(MyBrowser).Page(MyPage).WebEdit("name:=param[term]").Set "10"

Browser(MyBrowser).Page(MyPage).WebButton("name:=Calculate").Click

Browser(MyBrowser).Close



RE: how resolve "webedit" cannot identify - babu123 - 04-23-2015

Close all other browsers except Mortgage....

Code:
Browser("name:=MortgageCalculator").highlight
see the browser is highlighting......Its the issue of Browser

or

Code:
browser("creation time:=0").page("title:=Mortgage Calculator").webedit("name:=param[homevalue]").set "100"