Highlighted
Super Contributor.. mu21 Super Contributor..
Super Contributor..
61 views

WebElement: GetAllROProperties returns only 2 properties

Hello,

I'm trying to retrieve all the values and properties of an object by using this piece of code:

Set Props = Browser("xxx").Page("xxx").WebElement("objTest").GetAllROProperties
For i = 0 To Props.Count - 1
    Reporter.ReportEvent micDone, Props(i).Name, Props(i).Value
Next

However, I do not understand why it only returns 2 properties, html tag and innertext. Shouldn't it return all the properties? That's what I would expect.

This piece of code works and returns the value of the properties html id.

Reporter.ReportEvent micDone, "html id", Browser("xxx").Page("xxx").WebElement("objTest").GetROProperty("html id")

Thanks,

0 Likes
4 Replies
Micro Focus Expert
Micro Focus Expert

Re: WebElement: GetAllROProperties returns only 2 properties

hi,

Does this happen on all Browsers or a specific one?

Thanks.

James

0 Likes
Super Contributor.. mu21 Super Contributor..
Super Contributor..

Re: WebElement: GetAllROProperties returns only 2 properties

Hello,

Well I only use Chrome, Version 75.0.3770.142, so I don't know about the other browsers

0 Likes
Micro Focus Expert
Micro Focus Expert

Re: WebElement: GetAllROProperties returns only 2 properties

It appears to be the current behavior, I can reproduce it.

It could be a defect.

0 Likes
Micro Focus Expert
Micro Focus Expert

Re: WebElement: GetAllROProperties returns only 2 properties

It is. We will take this with R&D. 

Thanks.

James

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.