cancel
Showing results for 
Search instead for 
Did you mean: 

Testing Enterprise Portal / CRM PC-UI with Watir

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

gregorw
Active Contributor
0 Kudos

I think http://selenium.openqa.org/ is the solution.

Former Member
0 Kudos

Can you execute the script below from the command line? Any errors?

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()

Former Member
0 Kudos

ie.show_frames() should work. Did you put the brackets?

former_member583013
Active Contributor
0 Kudos

Agree...This should be

ie.show_frames<b>()</b>

Greetings,

Blag.

gregorw
Active Contributor
0 Kudos

Hello Blag,

unfortunately the same result:

irb(main):011:0> ie.show_frames()
WIN32OLERuntimeError: frames
    OLE error code:0 in <Unknown>
      <No Description>
    HRESULT error code:0x8002802b
      Element nicht gefunden.
        from c:/Programme/ruby/lib/ruby/site_ruby/1.8/watir.rb:1469:in `method_missing'
        from c:/Programme/ruby/lib/ruby/site_ruby/1.8/watir.rb:1469:in `show_frames'
        from (irb):11
        from &#9829;:0

Regards

Gregor