Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
capturing message on web page when caps lock is on
#1
Not Solved
I am trying to capture the message "Caps lock on" password field displayed on the web page when the caps lock is on.
Problem I am facing is when I type manually on the web page with caps lock on the message is displayed.But using QTP code the message is not getting displayed on the page.Here is my code,can any one shed some light?
I tried using "Set" , Send Keys etc....but no luck...On debug mode when i enter another character manually in the password field the message is getting displayed...Help please...
Code:
//Launch app and enter user name
SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe",  Parameter("URL")
Browser("xxx").Page("xxx").WebEdit("logonId").Set DataTable ("pUserName",dtGlobalSheet)
//make caps lock on
Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "{CAPSLOCK}"
//Password
Browser("xxx").Page("xxx").WebEdit("logonPassword").Click
Set oShell = CreateObject("WScript.Shell")
wait 1
oShell.SendKeys "h"
wait 1
Setting.WebPackage("ReplayType") = 2
Browser("xxx").Page("xxx").WebEdit("logonPassword").Click
oShell.SendKeys "{END}"
oShell.SendKeys "B"
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Web page not loading for EBS application when open UFT satyagadam 1 1,761 09-18-2019, 02:30 AM
Last Post: satyagadam
  How to avoid system lock while running Windows Based Application SaranKumarV 6 21,643 03-21-2018, 04:18 PM
Last Post: blr.moin@gmail.com
  Facing a problem while identifying Angular JS objects in a web page vangasantosh 0 1,220 12-20-2017, 01:26 PM
Last Post: vangasantosh
  Execute the QTp scripts when i lock my computer balreddy 4 21,894 10-19-2012, 04:45 AM
Last Post: sujoysen1
  Problem with capturing the QTP objects sonika2013 4 3,387 05-14-2012, 04:19 AM
Last Post: sonika2013

Forum Jump:


Users browsing this thread: 1 Guest(s)