Here is how I do it in Python with Selenium 2.48.0:
from selenium.webdriver import Firefox
driver = Firefox()
driver.set_window_position(0, 0)
driver.set_window_size(1024, 768)
More Related Contents:
- How to sleep Selenium WebDriver in Python for milliseconds
- How can I select a html element no matter what frame it is in in selenium?
- Running Selenium Webdriver with a proxy in Python
- How can I download a file on a click event using selenium?
- Python Selenium accessing HTML source
- Message: Element could not be scrolled into view while trying to click on an option within a dropdown menu through Selenium
- Log into gmail using Selenium in Python
- Select -> option abstraction
- How to handle elements inside Shadow DOM from Selenium
- How to set the timeout of ‘driver.get’ for python selenium 3.8.0?
- in selenium web driver how to choose the correct iframe
- selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities with Firefox 46 through Selenium
- How to set Selenium Python WebDriver default timeout?
- Turning off logging in Selenium (from Python)
- selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to be in PATH with GeckoDriver Selenium Firefox
- Python/Selenium incognito/private mode
- Mouse scroll wheel with selenium webdriver, on element without scrollbar?
- Undetected Chromedriver not loading correctly
- Is there a way to perform a mouseover (hover over an element) using Selenium and Python bindings?
- How to solve ‘Getting Default Adapter failed’ error when launching Chrome and try to access a webpage using the ChromeDriver using Selenium
- How to send text to the Password field within https://mail.protonmail.com registration page?
- How to find element by part of its id name in selenium with python
- How to get an attribute of an element from Selenium
- Selenium webdriver: How do I find ALL of an element’s attributes?
- selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities with GeckoDriver, Selenium and Firefox
- Chrome browser initiated through ChromeDriver gets detected
- WebDriverException: Service U:/Scraping/chromedriver.exe unexpectedly exited. Status code was: 1 while working with Chrome and Python
- __init__() takes 2 positional arguments but 3 were given using WebDriverWait and expected_conditions as element_to_be_clickable with Selenium Python
- How to get the localStorage with Python and Selenium WebDriver
- How do I get current URL in Selenium Webdriver 2 Python?