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

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.

主站蜘蛛池模板: 黄平县| 东莞市| 密山市| 织金县| 璧山县| 久治县| 呼图壁县| 潍坊市| 恭城| 石屏县| 定陶县| 天门市| 汕头市| 苍山县| 靖江市| 宜宾县| 大余县| 都兰县| 海盐县| 灵宝市| 筠连县| 隆德县| 广宁县| 仲巴县| 凉城县| 息烽县| 精河县| 故城县| 池州市| 南丹县| 攀枝花市| 申扎县| 天峻县| 施甸县| 靖西县| 犍为县| 老河口市| 高雄县| 余姚市| 新河县| 油尖旺区|