Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Verify that a dropdown Element is in Readonly mode with QTP.
#5
Solved: 11 Years, 3 Months, 3 Weeks ago
One alternate way would be using the error handling method.

You can try to set the value in the object. and check for error. If any error is thrown, the object is read only.
Code:
On Error Resume Next
Browser("").Page("").WebElement("").Object.text=<Some Value>
IF Err.Number<>0 Then
msgbox "Object is read only"
Else
msgbox "Values set successfully"
End If

You can try the above method.

Regards,
Ankesh
Reply


Messages In This Thread
RE: Verify that a dropdown Element is in Readonly mode with QTP. - by Ankesh - 06-22-2012, 04:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How do you Change Run mode mid script? Caleytown 6 7,192 03-25-2021, 08:27 AM
Last Post: RB26578
  Different Type of Dropdown Selector zunebuggy 6 3,400 05-01-2018, 06:46 PM
Last Post: zunebuggy
  Page element keep changing chong67 4 4,620 11-08-2016, 09:17 PM
Last Post: Paul Rammone
  [UFT] [WPF] Verify if the cell contains an image robertosalemi 0 1,896 10-25-2016, 06:57 PM
Last Post: robertosalemi
  Choosing element from array marvson 1 1,900 06-29-2016, 02:55 PM
Last Post: Ankesh

Forum Jump:


Users browsing this thread: 3 Guest(s)