I’m new to this. I have an issue with getting URLs from HTML file.
Basically task is:
- Open local html file
- Get list of URLs that are contained in that HTML file
- Check if those URLs contain specific parameters/values
I’ve tried this piece of code, that I found in forum:
WebElement element = WebUiCommonHelper.findWebElement(findTestObject(‘Additional Elements/html body’), 30)
List URLs = element.getAttribute(‘href’)
This suppose to list all URLs, if I understood correctly, but it does not. Code successfully ends, with no errors, but URLs isn’t listed.
I would appreciate any help on my task