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%';"
Related Contents:
- How to replicate Excel’s TEXTJOIN function in VBA UDF that allows array inputs [duplicate]
- Loop through files in a folder using VBA?
- Selenium using Python – Geckodriver executable needs to be in PATH
- Get reference to additional Inbox
- WebDriverException: ‘geckodriver’ executable needs to be in PATH even though it is
- How to create and write to a txt file using VBA
- How do I trigger a macro to run after a new mail is received in Outlook?
- Assign code to a button created dynamically
- Selenium WebDriver 3.4.0 + geckodriver 0.18.0 + Firefox ?? – which combination works?
- Pop up the Excel Statusbar?
- Application.Match gives type mismatch
- Is it possible to pass parameters programmatically in a Microsoft Access update query?
- VBA – destroy a modeless UserForm instance properly
- Webdriver Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms
- Find all matches in workbook using Excel VBA
- VBA Runtime Error 1004 “Application-defined or Object-defined error” when Selecting Range
- Transpose a range in VBA
- Building Undo Into an Excel VBA Macro
- Adding items in a Listbox with multiple columns
- Where does VBA Debug.Print log to?
- VBA Excel Populate ListBox with multiple columns
- Excel VBA looping through multiple worksheets
- How can Excel VBA open file using default application
- Assign event handlers to controls on user form created dynamically in VBA
- “Unable to get the VLookup property of the WorksheetFunction Class” error [duplicate]
- Range.Find on a Date That is a Formula
- Use of symbol # (hash) in VBA Macro
- How do I display a messagebox with unicode characters in VBA?
- How to add a DocumentProperty to CustomDocumentProperties in Excel?
- lastrow and excel table.
- Searching an excel with two search words (multiple lookup) using vba macro [closed]
- VBA Macro crashes after 32000 rows
- vba listbox multicolumn add [duplicate]
- What profile does Selenium WebDriver use by default?
- VBA Shell and Wait with Exit Code
- Getting error Procedure too large in VBA Macros (Excel)
- FileNotFoundError: [Errno 2] No such file or directory: ‘geckodriver’: ‘geckodriver’ with GeckoDriver and Python in MAC OS
- How to use the gecko executable with Selenium
- Open an Excel file from SharePoint site
- VBA – how to conditionally skip a for loop iteration
- Range.Find not making a difference between January and November (February and December) in VBA Excel
- Difference between Thisworkbook.name and Activeworkbook.name in VBA
- Getting AD Details based on username
- Distinguish visible and invisible attachments with Outlook VBA
- Sheet protection: UserInterFaceOnly gone
- What are the benefits and risks of using the StrPtr function in VBA?
- Consolidating worksheets into one
- Reverse order of For Each loop
- Return background color of selected cell
- How to wait until ActiveWorkbook.RefreshAll finishes before executing more code