Skip to content

Commit

Permalink
Zoom page content
Browse files Browse the repository at this point in the history
I originally sent ctrl+ to browser to zoom, but the screenshot unzooms
so I found this method instead.
  • Loading branch information
intermittentnrg committed Oct 17, 2023
1 parent e74f728 commit ce46375
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions grafanimate/grafana.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def boot_grafana(self):
"""
log.info("Starting Grafana at {}".format(self.baseurl))

self.set_window_size(1920,1080+85*2.2)
self.navigate(self.baseurl)

def navigate(self, url):
Expand All @@ -44,6 +45,9 @@ def navigate(self, url):
# Wait for Grafana application to load.
self.wait_for_grafana()

# Zoom page
self.marionette.set_pref("layout.css.devPixelsPerPx", str(2.2))

# Load Javascript for GrafanaStudio sidecar service.
jsfiles = ["grafana-util.js", "grafana-studio.js"]
for jsfile in jsfiles:
Expand Down

0 comments on commit ce46375

Please sign in to comment.