from selenium import webdriver
import time
browser = webdriver.PhantomJS()
browser.get('http://nnmclub.to')
current = browser.window_handles[0]
time.sleep(10)
browser.find_element_by_xpath("//a[contains(@href,'www.marketgid.com')]"
    ).click()
time.sleep(10)
newWindow = [window for window in browser.window_handles if window != current][
    0]
browser.switch_to.window(newWindow)
browser.get_screenshot_as_file(path_to_file)
browser.quit()
Python+Selenium+PhantomJs = Не нажимает =( Но Firefox нажимает