0
我想在Python 3硒開始在Firefox全屏網頁的頁面打開工作正常,但是當我送F11關鍵瀏覽器(全屏鍵),任何事情都會發生。這裏是我的代碼:全屏火狐Python的硒
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
firefox = webdriver.Firefox()
firefox.get('http://localhost')
firefox.maximize_window()
body = firefox.find_element_by_tag_name('html')
body.send_keys(Keys.F11)
有誰知道如何使我的網頁在全屏幕啓動?我知道這可能與Chrome,但它更難與火狐