I've got a page like below and I 'm trying to identify the element DivToFind
using selenium. But, as they are inside a frame and then inside another html
, i'm unable to find it.
I 've tried below.
SwitchTo().frame()
- Did not work
Window handler swapping - there is only one window handler
Any suggestions please?
<html>
<head>
<body unselectable="off">
<div ..... >
<iframe src="/something.jsp" name="FrameBox">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<body>
<div id="DivToFind">
........
</div>
</body>
</head>
</html>
</iframe>
</div>
</body>
</head>
</html>