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));
        }
示例#2
0
        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());
        }
示例#3
0
 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/")));
 }