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'");
            }
 public EmptyElementAdapter(By searchCriteria)
 {
     elementNotFoundException = new ElementNotFoundException(searchCriteria);
 }
 public IErrorMessageBuilder WithFailedToFindControl(ElementNotFoundException notFoundException)
 {
     this.notFoundException = notFoundException;
     return(this);
 }
Exemple #4
0
 public EmptyElement(By searchCriteria, ISearchable searchable)
 {
     exception = new ElementNotFoundException(searchCriteria, searchable);
 }