Ask a Question

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

Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
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

 

Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
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

cancel
Showing results for 
Search instead for 
Did you mean: