Automating screen capture of dashboard gadgets for report generation

Barney Dalton August 9, 2012

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

0 votes
Valentijn Scholten
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 5, 2014

If it's an anonymous dashboard, you could use iecapt: http://iecapt.sourceforge.net/

0 votes
Luther Hargrove
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2014

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.

Suggest an answer

Log in or Sign up to answer