Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BasePage<M>
- where M : BasePageElementMap, new()
- {
- protected readonly string url;
- public BasePage(string url)
- {
- this.url = url;
- }
- public BasePage()
- {
- this.url = null;
- }
- protected M Map
- {
- get
- {
- return new M();
- }
- }
- public virtual void Navigate(string part = "")
- {
- Driver.Browser.Navigate().GoToUrl(string.Concat(url, part));
- }
- }
- public class BasePage<M, V> : BasePage<M>
- where M : BasePageElementMap, new()
- where V : BasePageValidator<M>, new()
- {
- public BasePage(string url) : base(url)
- {
- }
- public BasePage()
- {
- }
- public V Validate()
- {
- return new V();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement