public void InitializeScreenplay() { Actor = new Actor(name: "Andy", logger: new ConsoleLogger()); AssemblyDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); Actor.Can(CallDogApi.DumpingTo(AssemblyDir)); Actor.Can(CallDogImagesApi.DumpingTo(AssemblyDir)); }
public void InitializeScreenplay() { actor = new Actor(name: "Harshit", logger: new ConsoleLogger()); string directoryName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); actor.Can(BrowseTheWeb.With(new ChromeDriver(directoryName + "\\Drivers"))); actor.AttemptsTo(Navigate.ToUrl(LoginPage.Url)); actor.AttemptsTo(MaximizeWindow.ForBrowser()); }
public void InitializeScreenplay() { Actor = new Actor(name: "Andy", logger: new ConsoleLogger()); Actor.Can(BrowseTheWeb.With(new ChromeDriver())); }
public void InitializeScreenplay() { Actor = new Actor(name: "Andy", logger: new ConsoleLogger()); Actor.Can(CallRestApi.Using(new RestClient("https://dog.ceo/"))); }