QAART-368 Fixing the issue that switching frame causing a run time error

The test was switching an iFrame before it is ready. The solution is to wait for the wrapper to appear first before  locating and switching to the iFrame which is the child of the wrapper.