Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-14247

page-fragments: hotkey: fix invoking over default (html) element

    XMLWordPrintable

    Details

      Description

      The current implementation (in version 4.5.14) of hotkey fragment uses:

      invoke(driver.findElement(advanced().getSelector().or(Utils.BY_HTML)));
      

      So, when selector is empty, the sendKeys(element) method is invoked with a html element. This can be problematic, because the sendKeys(element) firstly focuses in the middle of the element (clicks right in the middle) and it can collide with some buttons/inputs with actions, which can be eventually triggered.

      This can be resolved by using sendKeys with null instead of a valid element, but there is a Selenium issue with keyboard, concretely the cursor is initially focused in the navigation bar instead of the page, so it needs some workaround.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jstefek Jiří Štefek
                Reporter:
                jstefek Jiří Štefek
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: