In HTML page, I have the following code :
tr class="ClassName" align="center"
With Xpath, I succed to access to this element, but I would like to have proprieties of class "ClassName".
You probably need something like this:
This is TestComplete but not Selenium forum and By will not work in TestComplete.
You can use attr() function to retrive the value of the attribute. You can use it by just passing attribute name in the function and you will get a value as a result. Following is the example of attr() function.