Testing Web-based applications: The state of the art and future trends