Automating screen capture of dashboard gadgets for report generation


I'm trying to automate screen capture of a number of JIRA dashboards and Agile pages to be used as part of a regular reporting process. I've been using Selenium/Webdriver from python to do this as it seems that this is how Atlassian automate/test JIRA. Is there a nice way of detecting when all the gadgets on a dashboard have loaded? I can put in an explicit sleep but this a bit ugly.



2 answers

I have done this in powershell where you can open a web page and do a wait while the page is loading. If you are running scripts to do the screen captures, you could use powershell to do it. Once the page fully loads, then you can perform the other actions.

$ie = New-Object -comobject InternetExplorer.Application
$ie.visible = $true
while ($ie.busy) {start-sleep -milliseconds 500}

Alternatively you could use the sleep function. Although it may be ugly, just give it plenty of time to load. If you have these running programatically every day or multiple times a day, doing a wait time of 30 seconds isn't going to affect much and ensures that everything has sufficient time to load.

If it's an anonymous dashboard, you could use iecapt:

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,663 views 18 21
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you