ChrisPro
10 years agoContributor
css class
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".
An idea?
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".
An idea?
You probably need something like this:
pageObj.contentDocument.styleSheets[index].cssRules[index]
More info:
Try this
(By.ClassName("ClassName"));
sanjayvaniya :
This is TestComplete but not Selenium forum and By will not work in TestComplete.
Hello,
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.
E.x.
attr(class)