1. INTRODUCTION OF AUTOMATION TESTING

1. INTRODUCTION OF AUTOMATION TESTING

In this newsletter all you get the regular update to learn automation step-by-step from now.

Important Java concepts required for selenium:

? Conditions(if, if-else, switch)

? Loops(for, while, do-while, for-each)

? Oops(Inheritance, Polymorphism, Encapsulation, Abstraction)

? Method overloading, overriding

? Constructors

? String

? Type casting, Upcasting

? Code optimization

? Collection(List and Set)

Selenium is a free and open source automation tool which is used to automation any web based applications.


High Level Architecture of selenium:


  1. Selenium supports for multiple languages such as java, c, python etc,
  2. Each of these languages contains generic libraries(Re-useable codes) which is called as client/language binding.
  3. These client binding will communicates with as API called WebDriver
  4. Here client binding will communicate the actions which has to be performed on the browser such as open the browser, enter url/text, click, close etc.
  5. To perform action on the browser WebDriver will communicate with driver executable files such as chromedriver.exe, geckodriver.exe, IEDriverServer.exe etc


Note:

1. To perform action on chrome browser, webdriver will communicate with chromedriver.exe

2. To perform action on firefox browser, webdriver will communicate with geckodriver.exe

3. To perform action on ie browser, webdriver will communicate with IEDriverServer.exe

Java selenium Architecture:

WebDriver methods:

1 get()

2 getTitle()

3 getCurrentUrl()

4 getPageSource()

5 findElement()

6 findElements()

7 getWindowHandle()

8 getWindowHandles()

9 switchTo()

10 manage()

11 navigate()

12 close()

13 quit()


join The Testing Gurukul Group



要查看或添加评论,请登录

Abhishek Chauhan的更多文章

社区洞察

其他会员也浏览了