VAIBHAV SINGH
Selenium Interview Question

Question : How Selenium RC resolve Same Origin Policy Issue?

To overcome this security restriction, Selenium RC acts as an HTTP Proxy Server. When the test script asks to launch a browser, Selenium RC server launches the browser and injects its JavaScript (Selenium Core) into the browser. All the subsequent requests for the WAUT go through Selenium RC (acting as an HTTP Proxy Server) to the actual web server hosting WAUT(Web Automation Under Test). Thus making the browser think that the web application is being served from the Selenium RC s server domain than the actual web server s domain and allowing Selenium Core to execute and drive the web application.

Proxy Server : a proxy server is a server, that acts as an intermediary for requests from clients seeking resources from other servers. Such Servers uses to monitoring(content control, Logging) and Filtering (encrypted data) to improve performance.


Back