Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

6/29/2019

Headless browsers
• It is a web-browser without GUI. It will behave
just like a normal browser but will show any
GUI.
• Some of the Headless Derivers are:
– HTMLUnit
– Ghost
– PhontomJS
– ZombieJS

HTMLUnitDriver
• It’s a very light weight and fastest
implementation headless browser for the
WebDriver.

1
6/29/2019

Robot Class
• The Robot Class can simulate Keyboard and
Mouse Events
• With the help of Robot Class we can
upload/download files, interact with OS
window like download pop-up alerts, Print
pop-ups etc.,

Log4j
• It is the fast, flexible and reliable logging
framework (API). It is open source. With this it
is possible to store the flow details of our
selenium automation.

2
6/29/2019

Components of Log4j
• Logger
– Is responsible for logging information.
• Create an instance of logger class
• Define Log4j level
– All
– DEBUG
– INFO
– WARN
– ERROR
– FATAL
– OFF
• Appender
– It is used to deliver log events to their destination.
• Layout
– It is responsible for formatting logging information in different styles.

Configuring Log4J
• We have to decide on which appender to
implement.
– Log4j.appender.file.File
– Log4.j.appender.file.maxFileSize =
• Decide on what level of information has to be
logged
– Log4j.rootlogger =

You might also like