Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Non standard HTML attributes.
#1
Solved: 10 Years, 9 Months, 2 Weeks ago
Hi there,

does anyone know if QTP can read/retrive any non-standard HTML attributes?

For example, I have a DIV component, it can have some attributes called " uniquename", "hasChildren" etc.
say if the DIV has an html id as "div 1" ,uniquename as "Accounts" I can locate the DIV by doing calling :
Code:
Browser("title:=InfoView").Page("title:=InfoView").Fram("title:=InfoView").WebElement("html id:=div 1").Click()
When I write:
msgbox Browser("title:=InfoView").Page("title:=InfoView").Fram("title:=InfoView").WebElement("html id:=div 1").GetROProperty("uniquename")

I got an empty string. The same if I am using GetTOProperty("uniquename")

Also using Object Spy, I can not fetch the value for the attrubute even I have modified the object identification to specifically add in the "uniquename" as my mandatory display element attribute.

Many thanks for your insight.

Carol
Reply


Messages In This Thread
Non standard HTML attributes. - by Carol - 03-15-2008, 12:31 AM
RE: Non standard HTML attributes. - by sreekanth - 03-15-2008, 05:30 PM
RE: Non standard HTML attributes. - by Carol - 03-18-2008, 03:42 AM
RE: Non standard HTML attributes. - by sreekanth - 03-18-2008, 10:31 AM
RE: Non standard HTML attributes. - by Carol - 03-19-2008, 02:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Can we test Salesforce Standard form using QTP? yona34 0 943 05-22-2018, 10:57 AM
Last Post: yona34
  Customized HTML reports in QTP azeem 11 48,340 12-31-2016, 02:57 PM
Last Post: chevronneraji
  [UFT] Get text into DIV through HTML tag robertosalemi 2 5,282 03-29-2016, 09:43 PM
Last Post: robertosalemi
  How to attach HTML file to Email Naresh 0 2,748 04-06-2015, 02:04 PM
Last Post: Naresh
  User defined Objects(Can't map standard grid object in to table object ) madhavanr 0 2,485 01-14-2014, 03:46 PM
Last Post: madhavanr

Forum Jump:


Users browsing this thread: 1 Guest(s)