Skip to content

Selenium更新到新版本(4.x版本)后,代码语法发生了改变 #1

Description

@TANGYC-CS

demo1.py文件夹下的:
input = browser.find_element_by_id('kw') 这一行会进行报错
要改写成如下样子:
input = browser.find_element(By.ID,'kw')

参考链接: https://huaweicloud.csdn.net/637f7cdfdacf622b8df8614f.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions