-1
Code:
firefoxbin = os.path.abspath(os.path.join(os.path.dirname(__file__), 'drivers', 'geckodriver'))
assert os.path.isfile(firefoxbin), "Driver \"{}\" não disponível.".format(firefoxbin)
logger.debug(f"firefoxbin: {type(firefoxbin)}")
navegador = webdriver.Firefox(executable_path=firefoxbin)
logger.debug(f"navegador: {type(navegador)}")
navegador.get('/')
finally:
navegador.close()
Error:
Exception: 'str' Object has no attribute 'close'
Where is the
try
thatfinally
?– Rafael Barros
I forgot to put the question, but the code is right. I discovered the error and put it right. But in short it was basically disable Marionette.
– Igor Gabriel