Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find frame when "intoElement" field of PictureElement is in an iframe #660

Open
bhecquet opened this issue Aug 22, 2024 · 0 comments
Labels
Milestone

Comments

@bhecquet
Copy link
Owner

Scenario to reproduce:

private static FrameElement frame = new FrameElement("report frame", By.id("myframe"));
private static Table testlist = new Table("Integration tests", By.className("table"), frame);
private static HtmlElement testRow = new HtmlElement("test row", By.tagName("tr"), testlist, 0);
private static PictureElement lastState = new PictureElement("laststate", "ReportPage/images/laststate.PNG", testRow);

public ReportPage openLastState(String testName) {
    lastState.click();
    return this;
}

Expected result:
Picture is found

Current result:
Error with "frame not found"

Other context information
May be due to the fact that multiple searches are done inside the frame, and when selenium searches the "intoElement" testRow, its context is already in the frame

@bhecquet bhecquet added the bug label Aug 22, 2024
@bhecquet bhecquet added this to the 5.1.0 milestone Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant