我无法使用python选择selenium的选项 因此,我需要选择exemaple小说,然后选择General或General和Action&;冒险与一般。。。。。。就像在图中一样,我试着用这个代码来做,但它不起作用
el = driver.find_element_by_id('icon-fiction')
for option in el.find_elements_by_tag_name('General'):
if option.text == 'General':
option.click() # select() in earlier versions of webdriver
break
只需打开虚构,然后以输入标记为目标
进口
相关问题 更多 >
编程相关推荐