- 
                Notifications
    You must be signed in to change notification settings 
- Fork 782
Description
Not sure if this a bug. I use Select Frame keyword to test the content of an iframe.
The following code works well
- Select Frame xpath=//iframe[contains(@id,'xxxxxxId')]
- Page Should Contain TEXT_IN_IFRAME_1
- Page Should Contain TEXT_IN_IFRAME_2
The keyword Page Should Contain finds both texts in the IFrame.
Now if i do the following
- Select Frame xpath=//iframe[contains(@id,'xxxxxxId')]
- Page Should Contain TEXT_IN_IFRAME_1
- Page Should Contain TEXT_IN_IFRAME_2
- Click Element xpath=//div[@Class='xxxxClass}']
Click Element keyword can not find the element to click in the iframe.
However if I do the following
- Select Frame xpath=//iframe[contains(@id,'xxxxxxId')]
- Page Should Contain TEXT_IN_IFRAME_1
- Page Should Contain TEXT_IN_IFRAME_2
- Select Frame xpath=//iframe[contains(@id,'xxxxxxId')]
- Click Element xpath=//div[@Class='xxxxClass}']
It works. Click Element finds the element in the Iframe but I need to recall the keyword Select Frame. This is a test I am converting from Selenium1. In S1 it worked well when calling Select Frame once, then executing keywords in the frame then Unselect Frame when finished.
I also did some tests with Log Source which should logs and returns the entire html source of the current page or frame. Log Source displays the Iframe source only if called immediately after Select Frame.
In conclusion, I thought that all keywords would be executed on the Iframe after Select Frame keyword until you call Unselect Frame. However, it does not seem to be the case. I am not sure if this a bug or if I am missing something. Thanks