Skip to Main Content
Mastering Selenium WebDriver 3.0 - Second Edition
book

Mastering Selenium WebDriver 3.0 - Second Edition

by Mark Collin
June 2018
Beginner to intermediate content levelBeginner to intermediate
376 pages
8h 58m
English
Packt Publishing
Content preview from Mastering Selenium WebDriver 3.0 - Second Edition

Working with hover menus

First of all, we need to create a basic HTML page. We are going to use some CSS to style the HTML into a CSS hover menu. To try and keep it in small, manageable chunks, we will break up the page into a couple of pieces. Let's start by writing the HTML:

<!DOCTYPE html> 
<html lang="en"> 
<head> 
    <meta charset="utf-8"> 
    <title>CSS Menu</title> 
    <style type="text/css">${TBC}</style> 
</head> 
<body> 
<ul> 
    <li id="home">Home</li> 
    <li id="about">About</li> 
    <li id="services"> 
        Services 
        <ul> 
            <li>Web Design</li> 
            <li>Web Development</li> 
            <li>Illustrations</li> 
        </ul> 
    </li> 
</ul> 
</body> 
</html> 

As you can see, it's just a very simple ordered list; you may have also noted that I have added a <style> tag, but I've not put anything in ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Selenium WebDriver 3 Practical Guide - Second Edition

Selenium WebDriver 3 Practical Guide - Second Edition

Pallavi Sharma, UNMESH GUNDECHA, Satya Avasarala

Publisher Resources

ISBN: 9781788299671Supplemental Content