
wait until page contains element //*[@class="modal fade in"]
thanks, both of you.
It is working now used both the solution.
Just one question Chompoonuch could you please share the information- where you find this //*[@class=" modal fade in"], or this class is common for all similar types of the issue (e.g dialog box or sign in the page of other sites ).
If you have any documentation regarding this could you please share with me.

