本文整理匯總了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;
}