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

This widget could not be displayed.

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.

This widget could not be displayed.

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

140 views 1 3
Join discussion

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