function Login_Mobile(){
target.frontMostApp().tabBar().buttons()["我的淘宝"].tap();
if(target.frontMostApp().navigationBar().rightButton().name()=="登录"){
target.frontMostApp().mainWindow().tableViews()["空列表"].cells()[0].tapWithOptions({tapOffset:{x:0.92, y:0.57}});//清空登录时,帐号的输入框
target.frontMostApp().keyboard().typeString("13600527882");
target.frontMostApp().mainWindow().tableViews()["空列表"].cells()["密 码:"].tap();
target.frontMostApp().keyboard().typeString("test1234");
target.frontMostApp().navigationBar().buttons()["登录"].tap();
}
else{
target.frontMostApp().navigationBar().buttons()["bar button refresh"].tap();
target.frontMostApp().navigationBar().buttons()["bar button refresh"].tap();
target.frontMostApp().mainWindow().tableViews()["空列表"].buttons()["mytaobao setting"].tap();
target.frontMostApp().mainWindow().tableViews()[0].cells()["注销当前帐号"].tap();
target.frontMostApp().actionSheet().buttons()["确定"].tap();
/*
target.frontMostApp().tabBar().buttons()["我的淘宝"].tap();
target.frontMostApp().mainWindow().tableViews()["空列表"].buttons()["mytaobao setting"].tap();
target.frontMostApp().mainWindow().buttons()[0].tap();
target.frontMostApp().mainWindow().tableViews()["空列表"].buttons()["mytaobao setting"].tap();
target.frontMostApp().mainWindow().tableViews()[0].cells()["注销当前帐号"].tap();
target.tap({x:492.00, y:377.00});
target.tap({x:477.00, y:401.00});
target.tap({x:506.00, y:391.00});
target.tap({x:516.00, y:393.00});
target.tap({x:515.00, y:394.00});
target.frontMostApp().actionSheet().buttons()["取消"].tap();
target.frontMostApp().navigationBar().buttons()["退出登录"].tap();
target.frontMostApp().actionSheet().buttons()["确定"].tap();
target.frontMostApp().mainWindow().tableViews()["空列表"].cells()[0].tapWithOptions({tapOffset:{x:0.92, y:0.57}});//清空登录时,帐号的输入框
target.frontMostApp().keyboard().typeString("13600527882");
target.frontMostApp().mainWindow().tableViews()["空列表"].cells()["密 码:"].secureTextFields()[0].tap();
target.frontMostApp().keyboard().typeString("test1234");
target.frontMostApp().navigationBar().buttons()["登录"].tap();
*/
}
target.frontMostApp().tabBar().buttons()["首页"].tap();
}
var target = UIATarget.localTarget();
Login_Mobile();
分享到:
相关推荐
spi主端、从端代码以及一个简单的testbench文件
Simple NFC reader for Android based on the sample code from the Android SDK. The app is available on: * Google Play : https://play.google.com/store/apps/details?id=se.anyro.nfc_reader * F-Droid : ...
MATLAB 是美国MathWorks公司出品的商业数学软件,用于算法开发、数据可视化、数据分析以及数值计算的高级技术计算语言和交互式环境,是进行图像处理与分析的重要工具。... 1.1 Basics The symbol "%" is used to ...
Remove boilerplate code for using SharePreference to persist app's config data, Inspire by retrofit 中文版本戳这里 Gradle compile 'github.hellocsl:simpleconfig:{lastest-version}' Usage Step1 Define ...
标题中的"Simple LPC Test O.K_speech_LPC_Coders_"提到了"Simple LPC Test",这指的是线性预测编码(Linear Predictive Coding, LPC)的一种简单测试。LPC是一种信号处理技术,常用于语音编码、音频压缩以及语音...
vhdl code for demux. this is a simple code in vhdl for demultiplexer. the test bench is also available
Test-driven development (TDD) is a development approach that relies on a test-first procedure that emphasises writing a test before writing the necessary code, and then refactoring the code to ...
With this book you'll also discover how to design simple and easily maintainable code, work with mocks, utilise behaviour-driven development, refactor old legacy code, and release a half-finished ...
This book will teach the concepts of test driven development in Java so you can build clean, maintainable and robust code About This Book Explore the most popular TDD tools and frameworks and become...
Dive into the TDD workflow, including the unit test/code cycle and refactoring Use unit tests for classes and functions, and functional tests for user interactions within the browser Learn when and ...
从描述 "tlscallback simple test code" 我们可以推测,这个项目可能是一个关于TLS(Transport Layer Security,传输层安全)回调函数的简单测试代码。TLS通常用于加密网络通信,确保数据在传输过程中的安全性。 1....
Throughout the first chapters, we will be dealing with some fairly simple tasks that are of interest to people new to TestComplete, gradually moving towards advanced-level automation approaches, which...
Now, the task is quite simple, given a positive integer n, generate the corresponding Gray code sequence. Input Input may contain multiple test cases. Each test case consists of one positive ...
Simple tool which help you to implement A/B Test. Download Comming soon. Code Preparation Prepare enum. enum ButtonColorPatterns { RED, GREEN, YELLOW } Build ABTest instance // Show button RED : ...
Test and debug your code with “What can go wrong” sections Understand the social aspects of professional development, and build career-ready skills from the start Whether you’re a total beginner or...
Targeted at Java developers who want to learn how to use test-driven development to improve the development process for constructing J2EE applications, this book bridges the gap between simple ...
Dive into the TDD workflow, including the unit test/code cycle and refactoring Use unit tests for classes and functions, and functional tests for user interactions within the browser Learn when and ...
explains why project infrastructure is critical, and provides compelling reasons to use Scala testing frameworks to not only test Scala code, but Java code too. This book introduces and explains the ...
"simple-test-and-modular-patterns: Code Fellows sea-d30 TDD 和模块化模式"这个项目,显然是为了教授如何在JavaScript环境中运用这两种方法。 测试驱动开发(TDD)是一种编程策略,开发者首先编写测试用例,确保...
model.fit(X_train, y_train, batch_size=batch_size, epochs=epochs, validation_data=(X_test, y_test)) ``` 5. **评估和预测**:训练完成后,可以使用`evaluate`来评估模型在测试集上的性能,`predict`则用于...