回复 楼主 bin376240554
网址 和你的代码 ???
[此贴子已经被作者于2019-8-14 16:16编辑过]
# coding: utf-8 from selenium import webdriver as wd import time if __name__ == '__main__': browser = wd.Firefox() browser.maximize_window() browser.get("https://www.") time.sleep(2) browser.find_element_by_xpath("//span[@class='span-box-header span-user']").click() time.sleep(2) browser.switch_to.frame('alibaba-login-box') browser.find_element_by_id('fm-login-id').send_keys("张三") browser.find_element_by_id('fm-login-password').send_keys("张三密码")