Actually what happens a pop up comes and my main screen becomes disable which is an error condition and in next text i do a comparision of text passed by me and expected string on screen as screen is disabled it returns empty which is correct.All i want is that the compariosion shud not return true.
ok I didn't quite get you first time round but now I think I do.
I think you need to step back and debug this. Run the test up to the point where this problem occurs, then stop the run and point the object spy at the text you cannot see.
If the object spy cannot see the text, then the defect in your system is pretty much going to stop you from progressing further. If you can see the text, try putting an output checkpoint to your datatable so that you can access the text value.