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

Page Fragments: injected web elements are not found relatively to root element

    Details

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

      Description

      Consider the following HTML code:

      <span>not correct</span>
      <div id="root">
          <span>correct</span>
      </div>
      

      and the related page fragment:

      public class SamplePageFragment {
      
          @Root
          private WebElement root;
          @FindBy(tagName = "span")
          private WebElement span;
      
          public String getText() {
              return span.getText();
          }
      }
      

      Expected return value of SamplePageFragment#getText() is "correct", but "not correct" is returned.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jpapouse Jan Papousek
                Reporter:
                jpapouse Jan Papousek
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: