public static void main(String[] args) throws InterruptedException, IOException {
//		WebDriver driver = new FirefoxDriver();
		DesiredCapabilities capabilities = new DesiredCapabilities();
		capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
		WebDriver driver = new InternetExplorerDriver(capabilities);
        
		Utils.openTvdb(driver, null);
    	
    	driver.findElement(By.partialLinkText("C L t ")).click();
        driver.findElement(By.partialLinkText("`qި")).click();
        
        List<Link> links = new LinkedList<Link>();
        
        for(WebElement link: driver.findElements(By.partialLinkText("`qި"))) {
        	links.add(new Link(link.getAttribute("href"), link.getText()));
        }
        
        for(Link link: links) {
        	// click the link with SHIFT pressed to open it in the new window
//        	new Actions(driver).keyDown(Keys.SHIFT).click(link).keyUp(Keys.SHIFT).perform();
            confirmTables(driver, link);
        }
        
        ((JavascriptExecutor)driver).executeScript("alert('Done!')");
	}