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

What is cross-site scripting (XSS)?

Another concept related to same-origin policy is cross-site scripting. Cross-site scripting refers to the situation where a website can be prone to attacks from hackers. A typical hacker injects one or more JavaScript codes into web pages that are being browsed. These JavaScript codes can be malicious, and can pull cookie information from websites, pertaining to be banks, for example. This way, the malicious script bypasses the same-origin policy control.

Selenium RC consists of two parts:

  • Selenium server
  • Client libraries

The following diagram shows the functioning of Selenium RC, where the RC Server sits in-between the libraries like Java and Python and sends instructions to Selenium Core, thereafter operating on the individual browser:

Image modelled from www.seleniumhq.org

The role of the Remote Control Server is to inject the Selenium Core in the respective browser. The client libraries send instructions in the form of requests to the RC Server, and the RC Server communicates this to the browser. After receiving a response, this is communicated back to the user by the RC Server.

主站蜘蛛池模板: 太原市| 古丈县| 郧西县| 红安县| 普兰店市| 永清县| 胶南市| 贵定县| 泰和县| 绿春县| 抚顺县| 奎屯市| 霍林郭勒市| 新营市| 柳州市| 阿拉善盟| 浦城县| 旺苍县| 洛阳市| 政和县| 穆棱市| 霍城县| 滕州市| 包头市| 阿坝县| 舒兰市| 亚东县| 苍溪县| 呼图壁县| 渝中区| 东宁县| 璧山县| 谷城县| 焉耆| 永修县| 渝中区| 从化市| 苏州市| 黎平县| 广东省| 天津市|