cancel
Showing results for 
Search instead for 
Did you mean: 

Check for the message in browser title

nisgupta
Valued Contributor

Check for the message in browser title

I am trying to check for the message in browser title . 

I have attached the firefox screenshot and small part of code , but the code do not work to check correctly for this message .

 

Let me know where I am missing. 

4 REPLIES 4
Marsha_R
Community Hero

Re: Check for the message in browser title

Right above your CAS error in the log, there's an object does not exist error.  If that's the object you're testing, then that's the problem.

 

Check to make sure the object exists before you check the text.

https://support.smartbear.com/testcomplete/docs/app-objects/common-tasks/checking-existence.html

nisgupta
Valued Contributor

Re: Check for the message in browser title

@Marsha_R 

 

I want to test the text that appear CAS error  but my code is not correctly checking 

let me know if you need the details.

 

Thanks

NG

Marsha_R
Community Hero

Re: Check for the message in browser title

I understand that you are trying to test for the correct text.  Look at the error I have highlighted.  That object does not exist error can cause your text error below it.  Resolve that error first and see if the text error goes away.

 

Marsha_R_0-1623950278029.png

 

nisgupta
Valued Contributor

Re: Check for the message in browser title

@Marsha_R

 

Sometime our application give those CAS Error. We need to check those error and notify those to team. It is fine "The object does not exist" error appear" This object does not exist error coming as we are trying to verify the object from the application when the application has no issue .

 

Since application has issue which mean CAS error that is whu script generate the error "Object does not exist" it is perfectly fine . The only thing we need to check whether in the browser tile the CAS error appear?

 

Thanks

NG

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors