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.
33 lines
797 B
33 lines
797 B
using Discord.Rest; |
|
using TestAutomation.Utils; |
|
|
|
namespace TestAutomation.Shared; |
|
|
|
public class WebsiteSearchDialog : BaseElement |
|
{ |
|
public WebsiteSearchDialog(Website website) : base(website) |
|
{ |
|
} |
|
|
|
public IWebElement SearchBackground => Website.Find("searchBackground"); |
|
|
|
public IWebElement SearchInput => Website.Find("searchInput"); |
|
|
|
public NavigationBar CloseDialog() |
|
{ |
|
Website.ClickTopLeft(); |
|
return Website.NavigationBar; |
|
} |
|
|
|
public WebsiteSearchDialog Search(string throne) |
|
{ |
|
Website.EnterInput(SearchInput, throne); |
|
return this; |
|
} |
|
|
|
public DatabaseSinglePage SelectSearchEntity(string throne) |
|
{ |
|
Website.Click(Website.FindButtonWithLabel(throne)); |
|
return Website.DatabaseSinglePage; |
|
} |
|
} |