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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

59 views 0 5
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