OWF - How to close multiple widgets (iframes)
I am working within a Ozone Widget Framework (OWF). One or more "widgets" can be opened. These open as iframes.
I have no issue with switching between the widgets. The issue is closing the widget.
I do not have a close button on the widget.
I can do an xpath on the [x] but it doesn't seem to find it on the execution.
Is there a hidden .close() somewhere within an iframe?
Thanks in advance,
Topic: Cannot close iframe
The application under test is using Ozone Widget Framework (OWF). I can open and interact with the widgets (iframes) without any issue.
OWF has this "feature" that remembers any widgets that were opened when it was last closed down.
For my automation tests, I do not want any widgets opened when the application starts to avoid conflicts if I open a duplicate widget.
When I a done with a widget, I cannot close it.
1. There is no button on the form to close it.
2. Although I can "detect" the [x] on the widget (iframe), it will not close when I execute the click() command.
I used this sampling of code to try to click on the [x]. What I visually see is that the [x] gets highlighted/focus but does not close on the click() call.
WebElement myElement = driver.findElement(By.xpath(" <html here> "));
WebElement parent = myElement.findElement(By.xpath(".."));
What other options are there to try?
Thanks in advance.
Tags for this Thread