D
D
dr sbtn2017-04-21 02:51:30
Software testing
dr sbtn, 2017-04-21 02:51:30

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

1 answer(s)
S
Stalker_RED, 2017-04-21
@Stalker_RED

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 question

Ask a Question

731 491 924 answers to any question