[arquillian-issues] [JBoss JIRA] (ARQGRA-416) @InFrame duplicitly switches to iframe with fragment method

Jan Dosoudil (JIRA) issues at jboss.org
Wed Dec 18 09:43:32 EST 2013


Jan Dosoudil created ARQGRA-416:
-----------------------------------

             Summary: @InFrame duplicitly switches to iframe with fragment method
                 Key: ARQGRA-416
                 URL: https://issues.jboss.org/browse/ARQGRA-416
             Project: Arquillian Graphene
          Issue Type: Bug
    Affects Versions: 2.0.0.Final
            Reporter: Jan Dosoudil


{code}
public class Fragment {
    @FindBy(id="button")
    private WebElement button;

    public void clickButton() {
        button.click();
    }
    public WebElement getButton() {
        return button;
    }
}
{code}

{code}
@RunWith(Arquillian.class)
@RunAsClient
public class Test {
    //...
    @FindBy(id="content")
    @InFrame(nameOrId="frame")
    private Fragment Fragment;

    @Test
    public void testWebElement() {
        fragment.getButton().click(); //PASS
    }

    @Test
    public void testMethod() {
        fragment.clickButton(); //FAIL
    }
}
{code}

Exception is: org.openqa.selenium.NoSuchFrameException: Unable to locate frame: frame

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the arquillian-issues mailing list