Welcome, Guest. Please login or register.
Login with username, password and session length

 
Advanced search

18120 Posts in 4741 Topics- by 31743 Members - Latest Member: suuraj
 

Pages: [1]   Go Down
Print
0 Members and 1 Guest are viewing this topic.
Author Topic: How to Verify that Mouse Curser is on which Text Box??    (Read 163 times)
DEVENDRA SHARMA
Active User
**
Offline Offline

Posts: 85



« on: March 03, 2010, 12:28:11 PM »

How to Verify that Mouse Curser is on which Text Box i.e. I have 2 Text Boxes "UserId" & "Password", now I want to verify that on which Text Box Mouse Curser is present?

Please find the source code as an attachment.

Looking forward for your positive response!!!

Thanks,
Devendra Sharma
Logged

'Knowledge of our own limitations is the key to success'
Asiq Ahamed
Moderator
Sr. User
*****
Offline Offline

Posts: 459



WWW
« Reply #1 on: March 03, 2010, 08:43:01 PM »

Hi Sharma,
       Can you try the below method?

Code
GeSHi (qtp):
If Browser("name:=Google").Page("title:=Google").Object.activeElement.type="text" Then

Msgbox Browser("name:=Google").Page("title:=Google").Object.activeElement.Name

End If

 
Created by GeSHI 1.0.7.20

Let's see others' solution also.
Logged
DEVENDRA SHARMA
Active User
**
Offline Offline

Posts: 85



« Reply #2 on: March 04, 2010, 04:33:30 AM »

Thanks!!!
Logged

'Knowledge of our own limitations is the key to success'
Pages: [1]   Go Up
Print
Jump to: