Android 应用中的 Web 自动化
Android web automation in app
我想制作一个简单的 android 应用程序,它可以在网络上执行一些自动化行为。
我希望能够输入 username/password 详细信息并让我的应用程序大概通过 Web 视图导航到网站并填写我的登录凭据并导航到网站的特定部分。
我知道 selenium 非常适合这样的任务,但想知道是否有人有过尝试类似事情的经验,是否可以从 Android 应用程序内部而不是 运行据我所知,测试实际应用程序的独立服务器是 selenium/selenedroids 主要目的。
谢谢
如果您打算从 Android 应用程序自动执行测试您的网络的操作,请尝试 calabash-android,它就像 Android 的 Selenium。
Calabash-android 支持 WebView
操作,在您的情况下也支持输入文本。
You can use the enter_text method to enter text in a webview (in addition to any other android widget).
enter_text("webView css:'input.login'", "run")
This will enter the text "run" into the first input field of the class 'login'.
来源:https://github.com/calabash/calabash-android/wiki/06-webview-support
我想制作一个简单的 android 应用程序,它可以在网络上执行一些自动化行为。
我希望能够输入 username/password 详细信息并让我的应用程序大概通过 Web 视图导航到网站并填写我的登录凭据并导航到网站的特定部分。
我知道 selenium 非常适合这样的任务,但想知道是否有人有过尝试类似事情的经验,是否可以从 Android 应用程序内部而不是 运行据我所知,测试实际应用程序的独立服务器是 selenium/selenedroids 主要目的。
谢谢
如果您打算从 Android 应用程序自动执行测试您的网络的操作,请尝试 calabash-android,它就像 Android 的 Selenium。
Calabash-android 支持 WebView
操作,在您的情况下也支持输入文本。
You can use the enter_text method to enter text in a webview (in addition to any other android widget).
enter_text("webView css:'input.login'", "run")
This will enter the text "run" into the first input field of the class 'login'.
来源:https://github.com/calabash/calabash-android/wiki/06-webview-support