Copy of Quick Start Guide

GETTING STARTED

Welcome to the Vision Automation Framework (VAF) installation guide for Visual Studio. Follow these steps to set up VAF for your C# NUnit test project.

Code Snippet with Copy Button
 [Test]
public void Test4()
{
    TestingContext.Should().HaveSection<VAF_LandingPage.ContactUs>()
        .That.Should().HaveElement<VAF_LandingPage.ContactUs.Name>()
            .That.AsTextInputField().LetsInsert("Automation Name")
        .AndAlso().Should().HaveElement<VAF_LandingPage.ContactUs.Email>()
            .That.AsTextInputField().LetsInsert("automation@email.com")
        .AndAlso().Should().HaveElement<VAF_LandingPage.ContactUs.Subject>()
            .That.AsSelectBox().LetsSelect("Other")
        .AndAlso().Should().HaveElement<VAF_LandingPage.ContactUs.Message>()
            .That.AsTextInputField().LetsInsert("Message from Automation " + DateTime.Now.ToString("MM-dd-yyyy"))
        .AndAlso().Should().HaveElement<VAF_LandingPage.ContactUs.Send>()
            .That.AsButton().LetsClick();
    TestingContext.Should().HaveSection<VAF_LandingPage.ContactUs>()
        .That.Should().HaveElement<VAF_LandingPage.ContactUs.ThankYouMessage>()
            .That.AsLabelText().Should().Contain("Thank you for contacting us.");
} 
Share by: