You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
591 B
25 lines
591 B
using TestAutomation.Utils; |
|
|
|
namespace TestAutomation.Shared; |
|
|
|
public class NavigationBar : BaseElement |
|
{ |
|
public NavigationBar(Website website) : base(website) |
|
{ |
|
} |
|
|
|
private IWebElement HomeLink => Website.FindScreenSpecific("homeLink"); |
|
private IWebElement SearchButton => Website.FindScreenSpecific("searchButton"); |
|
|
|
public NavigationBar ClickHomeLink() |
|
{ |
|
Website.Click(HomeLink); |
|
return this; |
|
} |
|
|
|
public WebsiteSearchDialog ClickSearchButton() |
|
{ |
|
Website.Click(SearchButton); |
|
return Website.WebsiteSearchDialog; |
|
} |
|
} |