简体   繁体   中英

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

It should import the USERNAME and PASSWORD ( look picture ) to the INPUT form with sending the keys

excel list name doesnt care

        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. This will help with the data-driven framework and also for the execution report.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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