Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Web Element
#6
Not Solved
My question to you here is , does QTP throw a runtime error, with description saying something like that "object not found" ?

and my suggestion would be to take a safer approach, and first check if the web element exists... just a example code idea...

Code:
if Browser().Page().WebElement().Exists(5) Then
   if Browser().page().WebElement().GetROProperty("visible") Then
      //Your code for when the element is visible
   Else
     //Your code for when element exists in the page but is not visible
Else
  //Your Code for when the element totally does not exist on the page

your problem might get solved this way around.
Reply


Messages In This Thread
Web Element - by raaj123 - 05-25-2012, 05:04 PM
RE: Web Element - by raaj123 - 05-29-2012, 12:16 PM
RE: Web Element - by falvi - 05-29-2012, 12:20 PM
RE: Web Element - by mahalakshmi - 05-29-2012, 12:25 PM
RE: Web Element - by raaj123 - 05-30-2012, 03:58 PM
RE: Web Element - by falvi - 05-30-2012, 04:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Page element keep changing chong67 4 4,291 11-08-2016, 09:17 PM
Last Post: Paul Rammone
  Choosing element from array marvson 1 1,792 06-29-2016, 02:55 PM
Last Post: Ankesh
  Web Element: Not able to select value from drop down in Web Element. Rajeev 4 5,013 08-04-2015, 06:03 PM
Last Post: kbhargava505
  How to capture tool tip within a web element frebuffi 3 3,539 11-10-2014, 10:06 AM
Last Post: learning_UFT
  How to connect two web element objects? zawarepradeep@gmail.com 1 2,538 07-23-2014, 11:23 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)