def create_args(): args = [ '--args', '-width', str(int(OSXBrowserDriver._screen_size().width)), '-height', str(int(OSXBrowserDriver._screen_size().height)) ] return args
def create_window_size_arg(): window_size_arg = '--window-size={width},{height}'.format( width=int(OSXBrowserDriver._screen_size().width), height=int(OSXBrowserDriver._screen_size().height)) return window_size_arg