Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Selenium Testing Tools - Third Edition
  • Table Of Contents Toc
  • Feedback & Rating feedback
Learning Selenium Testing Tools - Third Edition

Learning Selenium Testing Tools - Third Edition - Third Edition

By : Raghavendra Prasad MG
4.4 (11)
close
close
Learning Selenium Testing Tools - Third Edition

Learning Selenium Testing Tools - Third Edition

4.4 (11)
By: Raghavendra Prasad MG

Overview of this book

If you are a software developer with a basic knowledge of testing and are interested in automated testing using Selenium, this is the book for you. No prior knowledge of Selenium is required.
Table of Contents (17 chapters)
close
close
16
Index

Using XVFB with Selenium

The following section of this book requires work in Linux as the requirements are only available on this platform. When Selenium is running on your machine, you will see that it always runs on your screen. If you want to push the running of your tests to the background, you need to use XVFB (X11 Virtual Frame Buffer).

This allows us to run tests with a browser without it trying to steal focus from you. FirefoxDriver, for example, forces the browser to the foreground to help native events.

Setting up XVFB server

We will have to make sure that we have XVFB running on our machine. This should be fairly easy to get it right. Refer to the following steps to set up an XVFB server:

  1. Open a terminal.
  2. In the terminal, run the following command:
    Xvfb :1 -screen 0 1600x1200x32
    
  3. The server will listen for connections as the server number, 1, and screen, 0, has a depth of 32 1600x1200.
  4. You should see something like the following screenshot on your terminal:
    Setting up XVFB server

We have just seen what it takes...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Selenium Testing Tools - Third Edition
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon