官术网_书友最值得收藏!

Understanding Selenium RC

Selenium RC is a popular UI automation library for automating browsers. Selenium RC uses a generic form of JavaScript called Selenium Core to perform automation. However, this should comply with a security policy called the same-origin policy. The same-origin policy is a security measure that prevents website scripts from accessing the scripts of other websites. For example, JavaScript present on Google cannot access or communicate with JavaScript present on Yahoo. Three things are checked for the same-origin policy: the protocol, domain, and port. If these three things match, then only the request can be said as being one from the same domain.

Selenium Core was introduced by Jason Higgins; It was nothing but a JavaScript program. Prior to Selenium RC, IT people had to install both Selenium Core and the entire web application on their local machine to make the virtual appearance as though the requests were coming from the same domain. Selenium RC introduced the RC server, which acted as a HTTP proxy and handled the requests between the web application and Selenium Core. 
主站蜘蛛池模板: 灯塔市| 兰溪市| 濉溪县| 南京市| 梓潼县| 富蕴县| 板桥市| 神农架林区| 临高县| 卢湾区| 梁河县| 平乐县| 遂昌县| 鲁甸县| 宁强县| 阿图什市| 临泉县| 荣成市| 千阳县| 大化| 祁东县| 昭平县| 水城县| 黄平县| 安福县| 阿巴嘎旗| 顺义区| 大庆市| 桃源县| 日喀则市| 宁阳县| 萍乡市| 惠安县| 康马县| 广饶县| 康定县| 罗平县| 荣昌县| 镇江市| 类乌齐县| 合山市|