Skip to content

Instantly share code, notes, and snippets.

@evanjs
Created March 13, 2018 12:47
Show Gist options
  • Save evanjs/ad777c79d3f66c096a700eca6b5b4019 to your computer and use it in GitHub Desktop.
Save evanjs/ad777c79d3f66c096a700eca6b5b4019 to your computer and use it in GitHub Desktop.
total_bugs = $$('td#bz_show_bug_column_1.bz_show_bug_column > table > tbody > tr:nth-child(21) > td > a')
closed_bugs = $$('td#bz_show_bug_column_1.bz_show_bug_column > table > tbody > tr:nth-child(21) > td > a[class*="bz_closed"]')
remaining_bugs = total_bugs.length - closed_bugs.length
console.log(`Total bugs: ${total_bugs.length}\nClosed: ${closed_bugs.length}\nRemaining: ${remaining_bugs}`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment