Uploaded image for project: 'Arquillian Graphene'
  1. Arquillian Graphene
  2. ARQGRA-229

Support for JavaScript interfaces defined as abstract classes

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.0.Alpha2
    • Fix Version/s: 2.0.0.Alpha3
    • Component/s: None
    • Labels:
      None

      Description

      It is handy when JavaScript interface should have helper Java methods.

      @JavaScript
      public abstract class Document {
      
          public abstract WebElement getActiveElement();
      
          public void WebElement getFocusedElement() {
              WebElement element = getActiveElement();
              if (isTabbable(element)) {
                  return element;
              }
              return null;
          }
      
          public boolean isTabbable(WebElement element) {
              ...
          }
      }
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                lfryc Lukáš Fryč
                Reporter:
                lfryc Lukáš Fryč
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: