# Application Map and Navigation\\Utility methods

**URL:** <https://www.ruby-forum.com/t/application-map-and-navigation-utility-methods/98292>\
**Category:** Ruby\
**Created:** [July 13, 2006, 6:03pm UTC](https://www.ruby-forum.com/t/application-map-and-navigation-utility-methods/98292 "2006-07-13T18:03:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aidy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/eada6e/32.png) [@aidy](https://www.ruby-forum.com/u/aidy)\
**Post date:** [July 13, 2006, 6:03pm UTC](https://www.ruby-forum.com/t/application-map-and-navigation-utility-methods/98292/1 "2006-07-13T18:03:29Z")

</div>

Hi,

I have an ObjectMap Class

class ObjectMap  
#login  
def login;$ie.link(:text, ‘Log in’);end  
def user\_name;$ie.text\_field(:name, /userid/);end  
def password;$ie.text\_field(:name, /password/);end  
end

I have navigation and utility methods held in modules

i.e.

module Login  
@map = ObjectMap.new  
def login(username=‘aidy’, password=‘123’)

```
@map.login.click
@map.user_name.set(username)
@map.password.set(password)

```

end  
end

and test classes

class A\_TEST  
def initialize

```
.....
login
.....

```

end  
end

However, when I try to run the test class, I get a “test failed: stack  
level too deep”.  
Not so sure why, Could anyone please help?

Kind Regards

aidy
