To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=100870


User fs changed the following:

                What    |Old value                 |New value
================================================================================
             Assigned to|fs                        |oc
--------------------------------------------------------------------------------




------- Additional comments from f...@openoffice.org Fri May 29 10:43:12 +0000 
2009 -------
fs->oc: back to you: The code for entering the HelpURL is as follows:
  Kontext "TabGeneralControl"
  '/// Enter in 'Help URL' as value exactly 'HID:123456'
  TabGeneralControl.TypeKeys "<TAB>" , true        
  HelpURL.setText "HID:123456"
  TabGeneralControl.TypeKeys "<RETURN>",true
That is, you focus the "General" tab page, press TAB once (so the first control
on that page is focused), then enter some text in the HelpURL field (which does
not have the focus at that time), and then press RETURN in the General page.
Unfortunately, this RETURN doesn't arrive at the HelpURL control, since it does
not have the focus. So, the control has no chance of committing its content.

Why this works on the other platforms is beyond me - I suppose that's by
accident only.

Several possibilities come to my mind how to fix that:
- do
    HelpURL.TypeKeys "<RETURN>",true
  instead of 
    TabGeneralControl.TypeKeys "<RETURN>",true
  Then, the RETURN, which commits the content, is sent to the HelpURL
  control. This is what I tried, and it works fine.
  Disadvantage: It's still not really a simulation of what users do, since
  HelpURL does not have the focus at that time.
  (Except ... if the "true" parameter at the "TypeKeys" method has the
  semantics of "focus the control before typing keys" - in this case, your
  original code is correct, and it's a testtool bug of not actually focusing
  the control.)
- Do a
    Kontext "HelpURL"
  before typing the RETURN. In my understanding (which is pretty limited with
  respect to testtool scripts), this could also fix the issue.
- Use the proper number of TAB keys to travel to the HelpURL control, instead
  of doing only one TAB.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@dba.openoffice.org
For additional commands, e-mail: issues-h...@dba.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to