Need help to get WebDriver access to FlexPilot contained in Facebook 'canvas' IFrame

41 views
Skip to first unread message

John

unread,
Feb 13, 2011, 12:15:45 PM2/13/11
to flex-...@googlegroups.com
I spoke with Adam a bit over a week ago and followed his recommendation to try Selenium 2b1 with the idea that the newer WebDriver implementations will allow the test script to access an IFrame that is served from my app within the Facebook page. My tests work beautifully targeting Firefox. Both Chrome and IE fail in JavascriptExecutor#executeScript() after the WebDriver#switchTo().frame(canvasName).

Please let me know if you think of anything I can try with ChromeDriver & InternetExplorerDriver. At the moment, I'm heading toward injecting input elements to the IFrame body so the WebDriver tests can manipulate UI elements rather than relying on JavaScript sent in from the test client.

More details are in the StackExchange question about Javascript in ChromeDriver and InternetExplorerDriver.

Wish me luck!
John

John

unread,
Feb 15, 2011, 11:33:38 AM2/15/11
to flex-...@googlegroups.com
Yay! Selenium 2b2 resolved the problem with InternetExplorerDriver. Seems that we'll have to wait for 2b3 to test in Chrome.

Adam Christian

unread,
Feb 20, 2011, 2:54:31 AM2/20/11
to flex-pilot
Hi John thanks a lot for reporting back, could you actually give a bit
more detail on what your setup looks like?

I am actually getting a lot of questions about this specific thing,
and if you had time to do a blog post I could point people at, it
would be REALLY helpful.

If not, a detailed mailing list post is still super useful.

Glad to see the progress!

Adam

John

unread,
Feb 20, 2011, 12:38:36 PM2/20/11
to flex-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages