sonya_m
Alumni
5 years ago[TechCorner Challenge #13] Get properties of a web page element
Hi TestComplete Community,
A new TechCorner task today - we will be working with the DOM Document object.
By completing the tasks, you can practice your skills of working with TestComplete features and also get into the TechCorner Leaderboard!
Task: You will need to find the “Start a topic” button on this page and get the following info about it: color, font family, and font size and post the script and the log info below.
Difficulty:
The button you'll be interacting with:
For this:
1. Get the element.
2. Obtain the element style as described in the documentation: Getting Computed Styles.
3. Log the values of the following style properties: backgroundColor, fontFamily, and fontSize.
Good luck!😊