Ejemplo n.º 1
0
            public void CorrectlySetsMessage()
            {
                // Act
                var exception = new ElementNotFoundException("Element Name", "Locator");

                // Assert
                exception.Message.Should().Equal("Couldn't find a Element Name via name, id or label text for locator 'Locator'");
            }
Ejemplo n.º 2
0
 public EmptyElementAdapter(By searchCriteria)
 {
     elementNotFoundException = new ElementNotFoundException(searchCriteria);
 }
 public IErrorMessageBuilder WithFailedToFindControl(ElementNotFoundException notFoundException)
 {
     this.notFoundException = notFoundException;
     return(this);
 }
Ejemplo n.º 4
0
 public EmptyElement(By searchCriteria, ISearchable searchable)
 {
     exception = new ElementNotFoundException(searchCriteria, searchable);
 }