Andrea Bisello
Andrea Bisello

Reputation: 1225

robotframework selenium2library how to catch both javascript exception and !=200 http status response

i want to improve my selenium2library robotframework testsuite catching javascript error and calls that returns http status different from 200.

Even i think this is a common problem, google cannot help me.

Some advices?

Upvotes: 0

Views: 388

Answers (1)

Bryan Oakley
Bryan Oakley

Reputation: 386220

If you want to test http responses, you need another library such as RequestsLibrary or HTTPLibrary. You can also write your own keywords in python using urllib2 or urllib3.

You can use Selenium2Library's ExecuteJavascript keyword to test javascript functions.

Upvotes: 1

Related Questions