简体   繁体   English

如何在 android 手机中运行 selenium

[英]How do I run selenium in android phone

Hii when I use seledroid In my android phone using Termux it throws an error Hii 当我使用 seledroid 在我的 android 手机中使用 Termux 它抛出一个错误

Error type 3
Error: Activity class 
{com.luanon.chromium/
com.luanon.chromium.SplashActivity} 
does not exist.

And this is my code这是我的代码

from seledroid import webdriver

driver = webdriver.Chrome()

Actually, I also researched on this.其实我也研究过这个。 There's no information to run selenium in Android directly using termux. Android中没有直接使用termux运行selenium的资料。 You require pc to run either Selenium or Selendroid or appium.您需要 pc 运行 Selenium 或 Selendroid 或 appium。

This request to run Selendroid in termux has no response yet on GitHub/Selendroid这个在 termux 中运行 Selendroid 的请求在 GitHub/Selendroid 上还没有响应

You were running Seledroid(not Selendroid) in termux, which is simple python module to control browser but for android. As author/developer stated that it's in development as of today.您在 termux 中运行 Seledroid(不是 Selendroid),这是一个简单的 python 模块来控制浏览器,但用于 android。正如作者/开发人员所说,它目前正在开发中。 For more info on this, visit its project page to find support forums to get help.有关这方面的更多信息,请访问其项目页面以查找支持论坛以获得帮助。

Project description.项目描述。 Seledroid Remote WebDriver. Seledroid 远程 WebDriver。 Stop update.停止更新。 You can join my telegram group to see me make a new webdriver uwu.你可以加入我的电报群看我做一个新的 webdriver uwu。 [This is beta, full of bugs] I really want to upgrade it but my current knowledge doesn't allow it, this is 100% my self build, I hope you guys like it, just use this code to continue, its free, thanks:) [这是测试版,满是bug]我真的很想升级它,但我目前的知识不允许,这是我100%自己构建的,我希望你们喜欢它,用这个代码继续,它是免费的,谢谢:)

There are apps like Tasker, MacroDroid to automate native Android apps.有 Tasker、MacroDroid 等应用程序可以自动化原生 Android 应用程序。 You can research and find more information.您可以研究并找到更多信息。 But not sure about on automating websites/webapps in Android.但不确定 Android 中的自动化网站/网络应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM