AttributeError: 'NoneType' object has no attribute 'implicitly_wait'

495 views
Skip to first unread message

Adam Matłacz

unread,
Jan 12, 2016, 9:56:31 AM1/12/16
to robotframework-users
My tests break with following error:
"AttributeError: 'NoneType' object has no attribute 'implicitly_wait'"

The funny part is - that if I use Page objects to open page - everything works smooth :)

In my tests, I set:
${SELENIUM_IMPLICIT_WAIT}    30.0

I have defined pageobject - lets call it Object1. When I use:
Open Object1 Page

Web browser opens. Page is loaded. Implicit wait is set and world is a better place :)
But due to other reasons, I need to resign of using page objects in this place. So to open web browser i use "setup" section and then standard keyword: "Go to"

Setup looks like this:
Set Selenium Setup
Open Browser about:blank
Maximize Browser Window

And then in test scenario I just:
go to               ${LOGIN_URL}

But this ends with error:
"AttributeError: 'NoneType' object has no attribute 'implicitly_wait'"

It looks, that there is a problem with implicit wait - but then why it works when I use pageobjects? Any help with fully understanding of this error message? :)

pavelf

unread,
Aug 19, 2016, 4:51:47 AM8/19/16
to robotframework-users
Hi, I have the same problem. Do you already know how to fix?

Reply all
Reply to author
Forward
0 new messages