Can't locate frame
Ivan2Hsu opened this issue · 0 comments
Ivan2Hsu commented
Hi, All
I'm writing some automation tool by VBA + SeleniumBasic. But for one website, I can't locate the frame by these codes.
Can anyone help?
Codes with Error
cd.SwitchToFrame 0
cd.SwitchToFrame (0)
cd.SwitchToFrame ("shell")
cd.SwitchToFrame "shell"
cd.SwitchToFrame(cd.FindElementById("shell"))
Original HTML Code
{html data-ng-app="xxxxxx"}
{head}
......
{/head}
{body ng-cloak}
{script}
......
{/script}
*********** Here's the frame **************
{div id="shell"}
{div data-ng-include="'./app/xxxxx/layout/shell.html'"}{/div}
{/div}
*********** Frame End *********************
{script src="./bower_components/jquery/dist/jquery.min.js"}{/script}
......