Open a new tab
Title of the new page
Practice: child window — Vision Automation Framework
Address
/practice/windows/child?from=link or ?from=button
On the page
"Opened by: link" or "Opened by: button" (id opened-by)

What to practise

In VAF: LetsSwitchToWindow, LetsSwitchToWindowByURL, LetsCheckIfWindowExists, LetsCloseTab, LetsOpenNewTab.

Tested in VAF-Demo

A test of this page from VAF-Demo, written with shared steps: the test says what the user does, the steps hold the VAF chains.

[Test]
public void NewTabIsFoundReadAndClosed()
{
    WindowsSteps.LetsOpenTheChildInANewTab();
    WindowsSteps.LetsCheckTheChildWasOpenedBy("link");
    WindowsSteps.LetsCloseTheChild();

    Assert.That(WindowsSteps.LetsCheckIfTheChildIsOpen(), Is.False);
}

On GitHub (opens in a new tab)