简体   繁体   English

如何将 excel 文件中的数据导出到脚本

[英]How to export data from excel file to script

I am using Python Selenium and i am trying to export data from an excel file to my script我正在使用 Python Selenium 并且我正在尝试将 excel 文件中的数据导出到我的脚本

It should import the USERNAME and PASSWORD ( look picture ) to the INPUT form with sending the keys它应该将用户名和密码(看图片)导入输入表单并发送密钥

excel list name doesnt care excel 列表名称不关心

        driver.find_element_by_xpath("//INPUT[@id='SignIn_email_uid']").send_keys(USERNAME)
        time.sleep(0.5)
        driver.find_element_by_xpath("//INPUT[@id='SignIn_password_password']").send_keys(PASSWORD)

优秀名单

for excel handling, pandas( https://pandas.pydata.org/ ) is a good option.对于 excel 处理,pandas( https://pandas.pydata.org/ ) 是一个不错的选择。 This will help with the data-driven framework and also for the execution report.这将有助于数据驱动框架以及执行报告。

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

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