|
|
|
|
Hitting enter key aftrer seting value in webedit
|
|
03-10-2010, 06:58 PM
Post: #1
|
|||
|
|||
|
Hitting enter key aftrer seting value in webedit
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 |
|||
|
03-11-2010, 10:17 AM
Post: #2
|
|||
|
|||
|
RE: Hitting enter key aftrer seting value in webedit
Can you paste whatever you have tried?
Thanks, ~Saket Kumar [Linkedin][pdf Api for QTP] It's so hard when I have to, and so easy when I want to... |
|||
|
03-11-2010, 10:39 AM
Post: #3
|
|||
|
|||
|
RE: 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: Browser("name:=XYZ").Page("title:=XYZ").WebEdit("name:=ABC").FireEvent "onblur" Thanks, Rajeshwar Practice as if you are the worst, perform as if you are the best |
|||
|
03-11-2010, 05:00 PM
Post: #4
|
|||
|
|||
|
RE: Hitting enter key aftrer seting value in webedit
i tried all these but still no luck,i need something like keyup or typekeys,Help please
AMA.Link("name:=Intermodal Storage").Click AMA.WebEdit("name:=equipmentIdList").Set "PACU 898375" 'Wait(3) ''AMA.WebButton("name:= Search").FireEvent "onblur" 'Wait(2) ' ''Dim WshShell ''' set WshShell = CreateObject("WScript.Shell") ''' wait(3) ''' WshShell.AppActivate "name:=UP: Accessorial Management: Intermodal Storage" ''' WshShell.SendKeys" {ENTER} " ''' wait(3) ''' ' '' '''AMA.WebEdit("name:=equipmentIdList").Type micF5 '''AMA.WebEdit("name:=equipmentIdList").SendKeys TE_ENTER AMA.WebButton("name:= Search").Click |
|||
|
03-11-2010, 05:59 PM
Post: #5
|
|||
|
|||
|
RE: Hitting enter key aftrer seting value in webedit
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. Thanks, ~Saket Kumar [Linkedin][pdf Api for QTP] It's so hard when I have to, and so easy when I want to... |
|||
|
03-11-2010, 06:15 PM
Post: #6
|
|||
|
|||
|
RE: Hitting enter key aftrer seting value in webedit
Thank you so much, that worked.I tried send kys but i was activating the main window.which was a mistake
|
|||
|
03-12-2010, 11:36 AM
Post: #7
|
|||
|
|||
(03-10-2010 06:58 PM)tbull Wrote: 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********************* 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: Browser(BrName).Page(PgName).Frame(FrName).WebEdit(textboxName).Activate then use the 'Enter' functionality SendKeys afterwards, even though if it's not working, just use the 'Enter' functionality SendKeys one more time, because sendkeys won't wait for screen/page loading, after using sendkeys method please use wait(2) 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 |
|||
|
03-12-2010, 11:36 AM
Post: #8
|
|||
|
|||
(03-10-2010 06:58 PM)tbull Wrote: 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********************* 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: Browser(BrName).Page(PgName).Frame(FrName).WebEdit(textboxName).Activate then use the 'Enter' functionality SendKeys afterwards, even though if it's not working, just use the 'Enter' functionality SendKeys one more time, because sendkeys won't wait for screen/page loading, after using sendkeys method please use wait(2) 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 | |
| qtp not identifying webedit object | apeksha_sonu | 1 | 299 |
02-15-2012 05:43 PM Last Post: basanth27 |
|
| How to Enter A Value on Web Element | pgcsc | 2 | 258 |
02-14-2012 02:08 AM Last Post: pgcsc |
|
| Enter new value from datatable in web edit | sonali shinde | 4 | 534 |
01-21-2012 11:04 AM Last Post: sonali shinde |
|
| WebEdit box | mv8167 | 3 | 459 |
01-18-2012 03:18 AM Last Post: mv8167 |
|
| Looking for Help with webedit text | cris76 | 4 | 825 |
09-22-2011 07:36 PM Last Post: Saket |
|
User(s) browsing this thread: 1 Guest(s)
|
|

Search
Member List
Calendar
Help



