Automating screen capture of dashboard gadgets for report generation

Hi,

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.

Thanks,

Barney

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
$ie.Navigate("https://some.site.com")
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: http://iecapt.sourceforge.net/

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

782 views 2 19
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