selenium vba code to zoom out webpage to 60%

后端 未结 1 1046
遥遥无期
遥遥无期 2020-11-30 15:49

I am trying to zoom out webpage to 60% using below code.But this code is not working and also i am not getting any error.Please correct me where i am wrong.

below is

相关标签:
1条回答
  • 2020-11-30 16:03

    To zoom out the webpage to 60% you can use either of the following line of code :

    driver.ExecuteScript "document.body.style.transform='scale(0.6)';"
    

    or

    driver.ExecuteScript "document.body.style.zoom='60%';"
    
    0 讨论(0)
提交回复
热议问题