With the help of Robot class we can Zoom In or Zoom Out the browsers in Selenium Automation. We need to press CNTRL+ADD (symbol '+') to Zoom In and CTNRL+SUBTRACT (symbol '-') to Zoom Out.
First, I tried with SendKeys() method as shown in the below screenshot for both Firefox and Chrome browsers but it didn't work. Don't know the reason but I suspect that the issue is with latest Selenium WebDriver version.
Check out the below code, where we are using Robot class to Zoom In and Zoom Out. I think the code is self explanatory for you.
Please comment your suggestions and queries on this post. Thanks for reading!!
#seleniumbabu #HappyLearning
First, I tried with SendKeys() method as shown in the below screenshot for both Firefox and Chrome browsers but it didn't work. Don't know the reason but I suspect that the issue is with latest Selenium WebDriver version.
Check out the below code, where we are using Robot class to Zoom In and Zoom Out. I think the code is self explanatory for you.
Please comment your suggestions and queries on this post. Thanks for reading!!
#seleniumbabu #HappyLearning
thanks for sharing and supreet is the best institute for selenium supreetsolutions
ReplyDeleteThis article really helps me to know more about this technology.Thanks for sharing this information in your blog, keep doing this continuously.
ReplyDeleteSelenium Training in Chennai
Selenium Course in Chennai
Selenium Training in Velachery
Selenium Training in Tambaram
Selenium Training in Anna Nagar
Software Testing Training in Chennai
Software Testing Course in Chennai
Software Testing Training in Velachery
Interesting blog I must say, the facts and information written here are accurate. black leather motorcycle jacket com.android.browser.home
ReplyDelete