Answer the question
In order to leave comments, you need to log in
How to find all the links on the page and then get the server response codes from them?
Let's say I have a small page where I have to find all the links and then get the server response codes for them.
I open html. In the code, I should only look for elements with the < a > tag, right? Can't there be other options? If so, then let's say I found three such elements in the code. How then to find the server response codes to these links?
Answer the question
In order to leave comments, you need to log in
If you need to look for links , then yes, only <a>
. But besides this, there can be forms, buttons with onclick and various scripts. Specify exactly what you need to test.
You can't get codes directly from selenium, but you can with a large file.
https://saucelabs.com/blog/options-for-validating-...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question