Python selenium - modifying the source code of a webpage

前端 未结 3 1598
暗喜
暗喜 2021-02-10 06:15

I am using Python selenium to automate my attendance entry. It was working fine, now I wanted to try by modifying the source code. I have seen few posts stating that it can be m

3条回答
  •  再見小時候
    2021-02-10 06:52

    in python use this :

    element = driver.find_element_by_id("some-random-number")
    driver.execute_script("arguments[0].innerText = 'change text'", element)
    

提交回复
热议问题