i have a situation when a button is being enabled only if i type the keys in.but when the qtp set the value the button is not being enabled.so i want to hit enter after seting the value in webedit.help please? i tried sedn keys but it hitting enter on the page not in the webedit form
Hitting enter key aftrer seting value in webedit
|
you can try using "FireEvent" Method.Check on which event the button is getting enabled and accordingly you can use appropriate event.
Example: Code: Browser("name:=XYZ").Page("title:=XYZ").WebEdit("name:=ABC").FireEvent "onblur"
i tried all these but still no luck,i need something like keyup or typekeys,Help please
Code: AMA.Link("name:=Intermodal Storage").Click
i guess sendkeys should work here.
you just need to ativate the edit box by clicking there before sending the enter/tab. I would prefer to send Tab key instead of Enter (if AUT permits) try this Code: set WshShell = CreateObject("WScript.Shell") let me know if this helps.
Thank you so much, that worked.I tried send kys but i was activating the main window.which was a mistake
*********************
Hi, 'Send Keys', are very faster than other scripting logic, so before coming to the sendkeys we have to activate the particular object For example: Code: Browser(BrName).Page(PgName).Frame(FrName).WebEdit(textboxName).Activate Note: To use the Fireevent method we have to activate the events before from "WebEvent Configuration Method" under the Tools menu select the particular object and make enable the events you needed. Regards, Dhanavantha G Krishnan
*********************
Hi, 'Send Keys', are very faster than other scripting logic, so before coming to the sendkeys we have to activate the particular object For example: Code: Browser(BrName).Page(PgName).Frame(FrName).WebEdit(textboxName).Activate Note: To use the Fireevent method we have to activate the events before from "WebEvent Configuration Method" under the Tools menu select the particular object and make enable the events you needed. Regards, Dhanavantha G Krishnan |
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Unable to pass "Enter" Key through Sendkeys | Lavanya N | 1 | 4,306 |
07-24-2015, 02:17 PM Last Post: Lavanya N |
|
How to enter values into excel which is already open using QTP | Narayanan | 1 | 4,555 |
12-11-2013, 07:30 AM Last Post: basanth27 |
|
QTP key issue fix | kprasadbio | 1 | 3,258 |
05-04-2013, 10:47 AM Last Post: Saket |
|
![]() |
How to Enter A Value on Web Element | pgcsc | 2 | 4,069 |
02-14-2012, 02:08 AM Last Post: pgcsc |
![]() |
Enter new value from datatable in web edit | sonali shinde | 4 | 7,737 |
01-21-2012, 11:04 AM Last Post: sonali shinde |
Users browsing this thread: 1 Guest(s)