Ask a Question

Chrome Keyword Test failing when Open File dialog box is displayed

SOLVED
glenmetz
Occasional Contributor

Chrome Keyword Test failing when Open File dialog box is displayed

I'm attempting to use TC to verify functional testing of a web-based application.  During the test, a file needs to be picked in an Open file dialog box in Chrome. TC bugs out at this point, and can't complete the execution.  Any advice on this?

1 ACCEPTED SOLUTION

Accepted Solutions
Marsha_R
Community Hero

Re: Chrome Keyword Test failing when Open File dialog box is displayed

I would do a couple of things:

 

First, check and make sure that the object in question is mapped properly.  Pull it up in the app and then go to the name mapping and try to right-click-Highlight it.  

 

If the mapping is okay, then put a Delay in the test right before the line with the error and try again.  This gives the object more time to load before you access it.  


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

View solution in original post

9 REPLIES 9
Marsha_R
Community Hero

Re: Chrome Keyword Test failing when Open File dialog box is displayed

"TC bugs out" is pretty vague.  If you give us some more details - steps you took, screenshots, etc., we might be able to help.


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
glenmetz
Occasional Contributor

Re: Chrome Keyword Test failing when Open File dialog box is displayed

I was about ready to run into a meeting, just wanted to get something up in case anyone had a "Here, try this" idea.

 

At the test step, the test fails with an

"The object does not exist.  See Additional Information for details."

 

Additional info tab:

 

An error occurred while accessing the "DblClick" method or property of the "Name" object.
The object or one of its parent objects was not found.

Object Whose Method or Property Was Accessed

Alias:Aliases.Test_Doc_1.Name
Name mapping item:NameMapping.Items_View.Test_Doc_1.Name

Object That Was Not Found

Alias:(undefined)
Name mapping item:NameMapping.Items_View

Click the link above to view and configure mapping settings for the missing object.

Marsha_R
Community Hero

Re: Chrome Keyword Test failing when Open File dialog box is displayed

I would do a couple of things:

 

First, check and make sure that the object in question is mapped properly.  Pull it up in the app and then go to the name mapping and try to right-click-Highlight it.  

 

If the mapping is okay, then put a Delay in the test right before the line with the error and try again.  This gives the object more time to load before you access it.  


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

View solution in original post

glenmetz
Occasional Contributor

Re: Chrome Keyword Test failing when Open File dialog box is displayed

The delay did not work.  I'm unable to highlight the fields on screen, I get the following error with the window open:

 

"Unable to highlight the "NameMapping.Edit" object on screen, because it does not exist.

 

Looks like TC doesn't like what this window is actually called.  How do I go about fixing this?

Marsha_R
Community Hero

Re: Chrome Keyword Test failing when Open File dialog box is displayed

What happens if you try to map the field?


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
glenmetz
Occasional Contributor

Re: Chrome Keyword Test failing when Open File dialog box is displayed

I was able to get it to work by mapping the field using the field chooser.  Neat little functionality.

 

Any advice on how to get a webpage to scroll in the middle of testing?  I can't seem to figure that one out.

Marsha_R
Community Hero

Re: Chrome Keyword Test failing when Open File dialog box is displayed

Possibly, but you should make that a separate post so others can see it too.  🙂


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
glenmetz
Occasional Contributor

Re: Chrome Keyword Test failing when Open File dialog box is displayed

I will do that, and mark you as providing the solution.

Marsha_R
Community Hero

Re: Chrome Keyword Test failing when Open File dialog box is displayed

Cool.  I just want to make sure other people will notice your second question and they might not if it's way down here.


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
cancel
Showing results for 
Search instead for 
Did you mean: