Created
March 5, 2019 13:34
-
-
Save YevgeniyShunevych/4089a8defc7202dd77a69a66a3cca345 to your computer and use it in GitHub Desktop.
Atata dynamic URL navigation using argument
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Atata; | |
using NUnit.Framework; | |
namespace SampleApp.UITests | |
{ | |
public class SampleTests : UITestFixture | |
{ | |
[Test] | |
public void GoToWorkspacePageById() | |
{ | |
Go.To(new WorkspacePage { WorkspaceId = 5 }); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Atata; | |
namespace SomeApp.UITests | |
{ | |
using _ = WorkspacePage; | |
public class WorkspacePage : Page<_> | |
{ | |
public int? WorkspaceId { get; set; } | |
protected override void Navigate() | |
{ | |
Go.ToUrl($"/path/{WorkspaceId}/subpath"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment