How to introduce custom variable(s) inside driver.execute_script()?

前端 未结 0 435
走了就别回头了
走了就别回头了 2020-12-13 17:43

For a web driver we can execute JavaScript code which includes custom variable like this:

driver.execute_script("alert(\'%s\')" % variable) # an exa         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题