import time from selenium import webdriver from selenium.webdriver.phantomjs.service import Service as PhantomJSService from selenium.webdriver.common.action_chains import ActionChains driver = webdriver.PhantomJS(executable_path='/patch/phantomjs') driver.get(url) print driver.get_window_position() action = ActionChains(driver) time.sleep(5) action.move_by_offset(300,300) print driver.get_window_position() driver.quit()
{u'y': 0, u'x': 0} {u'y': 0, u'x': 0}
Что не так?