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

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.

主站蜘蛛池模板: 乳山市| 乌拉特前旗| 滦南县| 察哈| 梨树县| 横峰县| 广东省| 万盛区| 黄梅县| 乐昌市| 石城县| 昭觉县| 社旗县| 沧州市| 澄江县| 鄢陵县| 林州市| 扶余县| 永仁县| 高唐县| 勃利县| 郁南县| 常熟市| 长泰县| 新闻| 固镇县| 泾阳县| 杨浦区| 安阳县| 博白县| 永宁县| 临朐县| 郴州市| 墨脱县| 永清县| 彭阳县| 休宁县| 招远市| 晋江市| 井冈山市| 建昌县|