on 08-07-2006 1:27 PM
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
I think http://selenium.openqa.org/ is the solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ie.show_frames() should work. Did you put the brackets?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ♥:0
Regards
Gregor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.