Integration Testing

I'm using integration testing, with multiple sessions. For the typical example, a module extends a session, like here:

For my testing, I would like to emulate the web interface with ruby objects. I'd like the test statements to look like

bob.goes_to_login bob.goes_to_main_page

I'm not clear on how I can get the structure above using modules, methods and classes.

Any help appreciated!