nateshmbhat / webbot

Web automation library for simple and easy end to end testing and web browser automation that offers super charged features while keeping it simple to use and master
https://pypi.org/project/webbot/
Mozilla Public License 2.0
239 stars 87 forks source link

AttributeError: 'WebDriver' object has no attribute 'fullscreen_window' #19

Closed Matiusco closed 5 years ago

Matiusco commented 5 years ago

My script test:

from webbot import Browser

driver = Browser() driver.go_to('google.com')

driver.click('Sign In') ; driver.click('Sign In' , tag='span' ) ; driver.click(id = 'elementid') ;

if there are multiple elements matching the text "NEXT" , then 2'nd element is clicked (since number paramter is 2 ) .

driver.click("NEXT" , tag='span' , number = 2 ) ;

error:

pyenv/versions/3.6.6/lib/python3.6/site-packages/webbot/webbot.py in (.0) 55 56 ---> 57 [setattr(self , function , getattr(self.driver , function) ) for function in ['add_cookie' ,'delete_all_cookies','delete_cookie' , 'execute_script' , 'execute_async_script' ,'fullscreen_window','get_cookie' ,'get_cookies','get_log','get_network_conditions','get_screenshot_as_base64' ,'get_screenshot_as_file','get_screenshot_as_png','get_window_position','get_window_rect','get_window_size','maximize_window','minimize_window','implicitly_wait','quit','refresh','save_screenshot','set_network_conditions','set_page_load_timeout','set_script_timeout','set_window_position','set_window_rect','start_client','start_session','stop_client','switch_to_alert']] 58 59

AttributeError: 'WebDriver' object has no attribute 'fullscreen_window'

help-me

Matiusco commented 5 years ago

I using chrome, release 75.0.3770.100 (Versão oficial) 64 bits Ubuntu 18.01