Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to enter text in webedit field.....
#1
Solved: 5 Years, 11 Months, 1 Week ago Exclamation 
Hi...

I need to enter the login credentials of Username and Pwd......and to hit the login button....But it throws an errors stating,

" Cannot find the "[ WebEdit ]" object's parent "[ Browser ]" (class Browser). Verify that parent properties match an object currently displayed in your application. "

Code used is,
Code:
Set id = description.Create()
id("html tag").value = "INPUT"
id("html id").value = "email"
id("name").value = "email"
id("type").value = "text"
id("X").value = "568"
id("Y").value = "385"
id("type").value = "text"

Browser("title:= Login").Page("title:= Login").WebEdit( id ).Set  "subha@gmail1.com"

Trying this to resolve for the past week....but couldn't...Get me out..
Reply
#2
Solved: 5 Years, 11 Months, 1 Week ago
Try this:

Code:
Set id = description.Create()
id("html tag").value = "INPUT"
id("type").value = "text"

Browser("title:= Login").Page("title:= Login").WebEdit( id ).Set "subha@gmail1.com"

Regards,
Sankalp
Reply
#3
Solved: 5 Years, 11 Months, 1 Week ago
Thanks.....But its not working..

Reply
#4
Solved: 5 Years, 11 Months, 1 Week ago
Hi,

Please try descriptive for both Browser and Page as well.
Reply
#5
Solved: 5 Years, 11 Months, 1 Week ago
Try this

Code:
Browser("title:= Login").Page("title:= Login").WebEdit("html tag:=INPUT").Set "subha@gmail1.com"

If that doesn't work you could have a frame missing from the tree. I would then try removing the page object and just use the Browser object and the WebEdit object. [This is what I do].
Reply
#6
Solved: 5 Years, 11 Months, 1 Week ago
Hi,

the above codes will not work, instead of "name" they mentioned "title" in Browser class

Browser("name:=Google") is correct
Browser("title:=Google") is not correct

below both are correct u can use any one from this

definitely this will work

Code:
Browser("micclass:=Browser").Page("micclass:=Page").WebEdit("html id:=email").set "xyz@gmail.com"

Browser("name:=Login").Page("title:=Login").WebEdit("html id:=email").set "xyz@gmail.com"


Regards,
G@veyom
Reply
#7
Solved: 5 Years, 11 Months, 1 Week ago
Rajesh , Just add the following property also for Text box:
Code:
Set id = description.Create()
id("micclass").value = "WebEdit"

Rest is fine.It will defimately work Smile
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question how to identify non-editable text field rashkv 5 12,058 10-10-2014, 04:03 PM
Last Post: nivedita
  Facing issue with Java Table to press Enter Key from Keyboard Nasir Ahmed 0 4,386 05-23-2014, 08:05 PM
Last Post: Nasir Ahmed
Question QTP Script for enter data to DB geethu105 2 3,140 02-24-2014, 06:54 PM
Last Post: guin.anirban
  Read text from text file and save it into a variable in qtp arpan 3 12,091 06-19-2013, 08:34 PM
Last Post: arpan
  Need to compare two text files - ignoring some text nelly27281 2 4,373 09-09-2012, 12:09 PM
Last Post: freeboynil

Forum Jump:


Users browsing this thread: 1 Guest(s)