Execute javascript async function and return result in selenium

前端 未结 0 973
南方客
南方客 2021-01-13 11:59

I am trying to execute the following script in selenium

    result = driver.execute_script(\'let result; await axe.run().then((r)=> {result=r}); return res         


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