In the application I am trying to click on the ‘New voice record’
link. While running the script I am getting error message in the sciTE
editor.

I am attaching the HTML code of the link.

<A class="OraLink" id="test:newEvaluationsNewTransactionLink1"
onclick="submitForm('userInboxForm',1,
{source:'test:newEvaluationsNewTransactionLink1'});return false;"
href="/faces/faces/client/inbox/userInbox.jspx#"
name="test:newEvaluationsNewTransactionLink1">New Voice Record</A>

I used different methods of scripting to navigate to other page. For
every script I am getting the below error message.
---------------------
#ie.link(:name, "test:newEvaluationsNewTransactionLink1").click
#ie.link(:id, "test:newEvaluationsNewTransactionLink1").click
#ie.link(:text, "New Voice Record ").click
ie.link(:href, "/faces/faces/client/inbox/userInbox.jspx").click
-----------------------------

c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in
`assert_exists': Unable to locate element, using :href, "/faces/faces/
client/inbox/
userInbox.jspx" (Watir::Exception::UnknownObjectException)
            from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
element.rb:284:in `enabled?'
            from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
element.rb:56:in `assert_enabled'
            from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
element.rb:229:in `click!'
            from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
element.rb:215:in `click'

Can you please guide me how to resolve this issue.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to