How to verify hyperlinks
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2023
02:37 AM
02-07-2023
02:37 AM
How to verify hyperlinks
Hi
Here I have attached image there "Test complete samples" are href links. How can I verify while mouse Hover to that element it shows underline and color change??
Any inbuilt methods available in TC!!!
Thanks team!
Labels:
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2023
03:12 AM
02-07-2023
03:12 AM
Default style links are rendered by the browser. However, if the website is using CSS for styling links then you should be able to get the attributes, see Getting CSS Attributes.
You can use getAttribute('href') method to return the URL.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2023
07:02 PM
02-08-2023
07:02 PM
To get the font color can I use like this
var color = page.FindElement("xpath");
Log.Message(color.style.fontcolor);
