Trong Bui said:
rafael quinones said:
Hello, how can i get the response status code of a URL, not a object?
I’m using this keyword:
links = WebUI.getAllLinksOnCurrentPage(true, [])
for (url in links) {
println(url)
}
I want to get the status code of each URL string (ex: 200, 404)
Thanks
I think that in the ‘for’ loop, we could use API built-in keywords to send request to each ‘url’, get the response object and print out the code. It is easy to get the code from response object.
Whats the built-in keyword for this ?
Can you give me an example please.
Thanks