本文整理汇总了C#中AndroidApp.Screenshot方法的典型用法代码示例。如果您正苦于以下问题:C# AndroidApp.Screenshot方法的具体用法?C# AndroidApp.Screenshot怎么用?C# AndroidApp.Screenshot使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AndroidApp
的用法示例。
在下文中一共展示了AndroidApp.Screenshot方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BeforeEachTest
public void BeforeEachTest()
{
app = ConfigureApp.Android.StartApp ();
app.Screenshot ("Given the app is loaded");
app.Tap (x => x.Button ("btn_play"));
app.WaitForElement (x => x.Id ("tv_bingoItem"));
var results = app.Query (x => x.Id ("tv_bingoItem"));
Assert.AreEqual (25, results.Length);
app.Screenshot ("25 items should be shown");
}
示例2: CustomerSalesPage
public CustomerSalesPage(AndroidApp app)
: base(app)
{
app.WaitForElement("WEEKLY AVERAGE", timeout: TimeSpan.FromMinutes(2));
app.Screenshot("On " + this.GetType().Name);
}
示例3: BasePage
protected BasePage(AndroidApp app, Func<AppQuery, AppQuery> androidTrait)
: this(app)
{
Assert.DoesNotThrow(() => app.WaitForElement(androidTrait), "Unable to verify on page: " + this.GetType().Name);
app.Screenshot("On " + this.GetType().Name);
}
示例4: BeforeEachTest
public virtual void BeforeEachTest()
{
app = AppInitializer.StartApp();
Thread.Sleep(TimeSpan.FromSeconds(5));
if (app.Query("SIGN IN").Any())
{
new SplashScreenPage(app)
.ExitSplashScreen();
}
//waiting for next screen to load
Thread.Sleep(TimeSpan.FromSeconds(5));
app.Screenshot("On Home Page");
}
示例5: BeforeEachTest
public void BeforeEachTest ()
{
// TODO: If the Android app being tested is included in the solution then open
// the Unit Tests window, right click Test Apps, select Add App Project
// and select the app projects that should be tested.
app = ConfigureApp
.Android
// TODO: Update this path to point to your Android app and uncomment the
// code if the app is not included in the solution.
.ApkFile ("../../../Tasky.Droid/bin/Release/com.xamarin.samples.taskydroid.apk")
.StartApp ();
app.Screenshot("uslika.png");
//app.Repl();
return;
}