您好,我正在尝试使用selenium在chromedriver上的office365菜单上单击新建组,但当我运行我创建的脚本时,此处不起作用的是“新建组”按钮位于http://prntscr.com/od9pec的方式和位置
from selenium import webdriver
import time
#after login and browsing to the home page
time.sleep(3)
nwgroup=driver.find_element_by_link_text('New group')
time.sleep(4)
nwgroup.click()请帮帮忙
发布于 2019-07-11 03:39:44
此元素没有这样的链接文本。将xpath用于新组,工作100%与我的个人办公室(见截图)
driver.find_element(By.XPATH, '//div[@title='New group']')

https://stackoverflow.com/questions/56977073
复制相似问题