Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,这个还维护吗 右键选input的时候,不管选何种定位方式,自动生成的python代码都是xpath的,且有些问题 #15

Open
YLIkeeper opened this issue Nov 1, 2021 · 0 comments

Comments

@YLIkeeper
Copy link

自动生成的python代码如下:(最后一个操作少了driver,且这个元素是有唯一ID属性定的,我选ID 也是出来XPATH
driver.find_element_by_xpath("//android.widget.EditText[@resource-id='com.flash.download:id/add_input' and @text='输入下载链接,支持http、https、ftp、ed2k、magnet等']").clear()
time.sleep(2)
.find_element_by_xpath("//android.widget.EditText[@resource-id='com.flash.download:id/add_input' and @text='输入下载链接,支持http、https、ftp、ed2k、magnet等']").send_keys(333)

如果还维护的话,代码输出框这能不能加个清屏按钮,另外右键find生成的元素变量命名能不能自动加个数字来区分

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant