Skip to Content
0
Former Member
Aug 07, 2006 at 12:27 PM

Testing Enterprise Portal / CRM PC-UI with Watir

39 Views

Hello Everybody, Hello Justin,

I've started to implement a Test on our Portal used as a frontend for the SAP CRM PC-UI:

[code]$LOAD_PATH << require 'watir'

include Watir

ie = IE.new

ie.goto("http://portal.test.com:50000/irj/portal")

ie.text_field(:name, "j_user").set("user")

ie.button(:name, "uidPasswordLogon").click

ie.link(:text, "Account Management").click

ie.link(:text, "Accounts").click

ie.show_frames[/code]

After the last command I get this error:

[code]WIN32OLERuntimeError: frames

OLE error code:0 in <Unknown>

<No Description>

HRESULT error code:0x8002802b

Element nicht gefunden.

from ./watir.rb:1469:in `method_missing'

from ./watir.rb:1469:in `show_frames'

from (irb):17[/code]

But there are definitely frames. The Site I'm accessing is already in the trusted Sites zone.

Regards

Gregor