Module15:Frame size is not consistent | Selenium Forum
M
Posted on 15/09/2016
How to deal scenario where frame size is varying? Sometimes, frame size is displayed as 10 and sometimes it is displayed as 11
[u:3m4hrf63]Size is displayed as 11[/u:3m4hrf63]
[attachment=1:3m4hrf63]Frame size.png[/attachment:3m4hrf63]

[u:3m4hrf63]Size is displayed as 10[/u:3m4hrf63]
[attachment=0:3m4hrf63]Frame size -10.png[/attachment:3m4hrf63]

M
Replied on 21/09/2016

Can you please explain how to handle if frame size is varying?


M
Replied on 21/09/2016

you are already handling frame.

[color=#FF0000:3cfr27o3]i<frame.size()[/color:3cfr27o3]


M
Replied on 21/09/2016

In first screenshot, number of frames displayed in this site are 11 and later i switch to frame 9 to perform some actions.

For same URL, after some time, number of frames displayed is 10. That means, frame size is varying dynamically.

In this scenario, can you please suggest whether it is correct to depend on frame size and switch into that particular frame??