Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to select an item from weblist and unable to enter text in edit box
#1
Not Solved
Hi Folks,

IN my application,I have written script to select an item from a web list and then enter text in an edit box.but while running the script it is performing both the operations.

here is my code:
Code:
With BrowserObject
.WebList("micclass:=WebList","name:=lstTitle","index:=0").select "Broken Link"
.WebEdit("micclass:=WebEdit","html id:=txtFeedback","index:=0","html tag:=TEXTAREA").Set "Feedback given on "&strDate
.Webbutton("micclass:=WebButton","name:=Send").click
end With

Please revert me with your suggestions.
Please find the correction with in stars.

Hi Folks,

IN my application,I have written script to select an item from a web list and then enter text in an edit box.but while running the script it is *not* performing both the operations.

here is my code:
Code:
With BrowserObject
.WebList("micclass:=WebList","name:=lstTitle","index:=0").select "Broken Link"
.WebEdit("micclass:=WebEdit","html id:=txtFeedback","index:=0","html tag:=TEXTAREA").Set "Feedback given on "&strDate
.Webbutton("micclass:=WebButton","name:=Send").click
end With

Please revert me with your suggestions.
Reply
#2
Not Solved
is there any error you are receiving, which statement QTP does not perform?

Reply
#3
Not Solved
Surprisingly it is not throwing any error.
In Result window it is ahowing as QTP performed all the steps.

The weblist and webedit steps are not performed.
The list box select type is ComboBox Select
Reply
#4
Not Solved
Please sshre me your ideas on how to resolve the issue.

Please respond ASAP.

Thanks in Advance
Reply
#5
Not Solved
See if this helps you,

Code:
Settings.Webpackage("ReplayType") = 2

With BrowserObject
.WebList("micclass:=WebList","name:=lstTitle","index:=0").Click
.WebList("micclass:=WebList","name:=lstTitle","index:=0").select "Broken Link"
.WebEdit("micclass:=WebEdit","html id:=txtFeedback","index:=0","html tag:=TEXTAREA").Set "Feedback given on "&strDate
.Webbutton("micclass:=WebButton","name:=Send").click
end With

Settings.Webpackage("ReplayType") = 1

Code:
Settings.Webpackage("ReplayType") = 2

With BrowserObject
.WebList("micclass:=WebList","name:=lstTitle","index:=0").Click
.WebList("micclass:=WebList","name:=lstTitle","index:=0").select "Broken Link"
.WebEdit("micclass:=WebEdit","html id:=txtFeedback","index:=0","html tag:=TEXTAREA").Set "Feedback given on "&strDate
.Webbutton("micclass:=WebButton","name:=Send").click
end With

Settings.Webpackage("ReplayType") = 1

Sorry, had issues wrapping. I hope now it should be clear.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#6
Not Solved At 
Hi Saket,

I am unable to select any item from weblist which recorded in QTP10. I didn't do any changes but ran same script as recorded. when I highlight the object, the weblist object getting hightlighted. Can you please guide me how to select an Item from weblist.

Error mesage:

Cannot identify the object "JRNL_HDR_IU_VW_JRNL_HDR_STATUS" (of class WebList). Verify that this object's properties match an object currently displayed in your application.

Line (39): "Browser("Oracle | PeopleSoft Enterprise").Page("Create Journal Entries").Frame("TargetContent").WebList("JRNL_HDR_IU_VW_JRNL_HDR_STATUS").Select " "".

Tip: If the objects in your application have changed, the Maintenance Run Mode can
help you identify and update your steps and/or the objects in your repository.
Regards
-Viswa


Attached Files Image(s)
   
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Webtable objects recognise as weblist in UFT 12.5 Sharad Kumar 0 1,044 12-06-2018, 04:57 PM
Last Post: Sharad Kumar
  how to select value from google search box dropdown +QTP prajyot 0 2,667 06-28-2017, 06:30 PM
Last Post: prajyot
  Unable to identify multilevel headers of JTable dharanikesav 0 1,332 01-16-2017, 07:09 PM
Last Post: dharanikesav
  How to select item within WebMenu learnasugo 4 7,701 10-11-2016, 03:35 PM
Last Post: learnasugo
  How to edit a text in aParagraph shaan.mishra87@gmail.com 2 2,359 08-26-2016, 04:48 PM
Last Post: shaan.mishra87@gmail.com

Forum Jump:


Users browsing this thread: 1 Guest(s)