Using sst in Lettuce
When I use use sst actions in the Lettuce steps, the browser object is not initialized. Which is the best way to extent sst to support Lettuce ? http://
See the example below:
blog.feature:
Feature: Personal Blog
Scenario: Visit the main page
Given I am at http://
Then I should see the title Rodney's Corner
steps.py:
from sst.actions import *
from lettuce import *
@before.
def setup_browser(
#start(
pass
@after.
def teardown_
close_window()
@step('I am at (.*)')
def i_am_at(step, url):
go_to(url)
@step('I should see the title (.*)')
def should_
assert_
Error messages:
Then I should see the title Rodney's Corner # \features\
=======
Traceback (most recent call last):
File "c:\python27\
callback(*args, **kw)
File "D:\home\
close_window()
File "c:\python27\
_test.
AttributeError: 'NoneType' object has no attribute 'browser'
Died with 'NoneType' object has no attribute 'browser'
Traceback (most recent call last):
File "c:\python27\
failfast=
File "c:\python27\
scenarios_
File "c:\python27\
call_
File "c:\python27\
callback(*args, **kw)
File "D:\home\
close_window()
File "c:\python27\
_test.
AttributeError: 'NoneType' object has no attribute 'browser'
0 feature (0 passed)
0 scenario (0 passed)
0 step (0 passed)
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Le Chi Thu for more information if necessary.