WebDriver is a test tool that allows you
to write automated web application UI tests in any programming language against
any HTTP and HTTPS website using any mainstream JavaScript-enabled browser.
This is commonly referred to as just
"WebDriver" or sometimes as Selenium 2.
Selenium
1.0 + WebDriver = Selenium 2.0
- WebDriver is designed in a simpler and more
concise programming interface along with addressing some limitations in
the Selenium-RC API.
- WebDriver is a compact Object Oriented API when
compared to Selenium1.0
- It drives the browser much more effectively and
over comes the limitations of Selenium 1.x which affected our functional
test coverage, like the file upload or download, pop-ups and dialogs
barrier
- WebDriver overcomes the limitation of Selenium
Rc's Single Host
origin policy
Origin policy : The essence of the Same Origin policy can be
formulated as: windows can work in contexts of each other only if they are from
same protocol://domain:port, or, shortly, from same origin.The “Same Origin” policy limits the access of
one window to another.
The reason behind that is security. If you have blabla.com in
one window and gmail.com in another one, then you’d not want a script from blabla.com to
access or modify your mail or run actions in context of gmail on your behalf.
Note
that the path part of the URL doesn’t matter anything.
These
are from same origin:
- http://site.com
- http://site.com/
- http://site.com/my/page.html
These
come from another origin:
- http://www.site.com (another domain)
- http://site.org (another domain)
- https://site.com (another protocol)
- http://site.com:8080 (another port)
0 Comments