verifytext in Selenium IDE script failing in IE even when it should be passing -


got selenium ide script recorded , being played using selenium server in -htmlsuite mode.it supposed put type user name, password , domain click login. after logging in, @ 1 corner, should show username @ domain. have verifytext this. when ran script in firefox, working correctly, in ie, keeps failing - giving me error message actual value 'username @ domain' did not match 'username @ domain'. tried assert , same thing. bug in selenium or something?

you should try using waitfortext, waitforelementpresent or waitfortextpresent commands, depending on specific need.

the reason being usually, when text created script on/after page load, selenium doesn't know - can't possibly wait every script finish, because there's lot of scripts never finish , run forever. therefore, need wait specific elements appear before can assert them.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -