Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inserting Enter operation into script
#1
Not Solved
Hi,

Can anyone help me for the below scenario:

I have to select a value from the drop down(DD1) and the selected value is dependent for some other drop down(DD2).
Like, When I select a value in DD1 then value in the DD2 should be refreshed. This is happening when I click Enter from Keyboard after selecting value from DD1.

Now, How can I insert the "Enter" operation into the script?

Plz help....

Regards,
Ravi.
Reply
#2
Not Solved
you can use SendKeys method or see if object.submit works for you.

Reply
#3
Not Solved
Hi Saket,

Tried with Submit... I got "Unspecified error"....

Below is the code i tried:

Code:
Browser("ABC").Page("XYZ").WebEdit("DD").Set "123"

Browser("ABC").Page("XYZ").WebEdit("DD").Submit

Actually here the issue is....
I have to select from the drop down... but when i added the object into repository then it is added as webelement instead as combobox.

Can you help me how to select the value from the drop down?

Thanks in advance,
Ravi.
Reply
#4
Not Solved
are you able to identify what type of control it is. I guess its not standard combobox, may be this could be reason its is identifying as Webelement. do you have dot net addin loaded?

Reply
#5
Not Solved
no..

I do have .Net add in... but have Java, ActiveX, Web, Visual Basic and PeopleSoft add ins.

Please let me know whether the drop down box is not identifying only due to the add in issue?

Thanks,
Ravi.
Reply
#6
Not Solved
May be.. QTP is not able identify the control. try to find out what control it is.

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to pass "Enter" Key through Sendkeys Lavanya N 1 4,167 07-24-2015, 02:17 PM
Last Post: Lavanya N
  The DataTable.ExportSheet operation failed. Invalid file. Niraj 2 6,288 05-05-2015, 11:40 PM
Last Post: babu123
  Excel operation - to find usedrange of rows & col pooja 1 9,715 02-19-2015, 04:06 AM
Last Post: supputuri
  Capturing the exact time when an operation is performed. Dilliz 2 3,041 01-09-2014, 03:30 PM
Last Post: Dilliz
  How to enter values into excel which is already open using QTP Narayanan 1 4,403 12-11-2013, 07:30 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)