import time
# 1- Import module file
from selenium import webdriver
# 2- Initialize the browser to chrome browser
brower = webdriver.Chrome()
brower.get('https://music.163.com/')
# Change the size of the window
#brower.maximize_window()# window maximizing
#brower.minimize_window()# Minimize the window
# Specify the window size
#brower.get_window_size(800,600)
# Get the size of the window
size=brower.get_window_size()
width=size['width']
height=size['height']
# Set the window height to the original 1/2
brower.set_window_size(width,height/2)
time.sleep(3)
brower.quit()