cancel
Showing results for 
Search instead for 
Did you mean: 

Chrome is not able to identify object in frame

Highlighted
Contributor

Chrome is not able to identify object in frame

I run the script on the webapplication that is developed using frame. IE is able to identify the object in the frame but not Chrome. I have set the following at the beginning of the test and still it does not fix the problem.

 

Browsers.Item("chrome").RunOptions= "--allow-file-access-from-files --disable-web-security";
Browsers.Item("chrome").Run();

 

I look into the Browser Explorer, the frame shows as one panel, there isn't break down in that panel whereas IE do.

 

Any idea how to fix this problem?

8 REPLIES 8
Highlighted
Community Hero

Re: Chrome is not able to identify object in frame

Highlighted
Contributor

Re: Chrome is not able to identify object in frame

I did the Chrome configuration as shown in the link provided in your reply, it is still unable to recognize the object in the frame

There is a prompt when I run the disable web security chrome command line, "You are using an unsupported command-line flag: --disable-web-security. Stability and security will suffer", is this just the warning?

 

Highlighted
Community Hero

Re: Chrome is not able to identify object in frame

What version of TestComplete are you using, and what version of Chrome do you have?

Highlighted
Contributor

Re: Chrome is not able to identify object in frame

TestComplete 12.5, Chrome version 67.0

Highlighted
Community Hero

Re: Chrome is not able to identify object in frame

Here's an earlier thread that discusses a similar problem.  Does this help you at all?

 

https://community.smartbear.com/t5/TestComplete-General-Discussions/Need-Help-to-identify-chrome-leg...

Highlighted
Contributor

Re: Chrome is not able to identify object in frame

I am running the web application, so the scenario does not apply. Thanks for the info.

Highlighted
Community Hero

Re: Chrome is not able to identify object in frame

I suggest you contact Support directly with your question.  Here's the link:

 

https://support.smartbear.com/message/?prod=TestComplete

Highlighted
Frequent Contributor

Re: Chrome is not able to identify object in frame

This looks like the same problem I had with one of my dialog boxes in Chrome. In that instance I have to check for the Chrome browser then run it as a TestedApps.

https://support.smartbear.com/testcomplete/docs/reference/project-objects/items/tested-apps/testedap...

The basic parameters I use are:

Name = Chrome

Check Launch application from tests

Application = C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

Command-line parameters = --disable-web-security --user-data-dir="C:\Repository\Automation\FieldSystemsAutomation\ChromeApp"

 

 

Then in the script where it fails I have:

  if(SelectedBrowser == -3)
  {
    Log["Event"]("Opening Chrome via the TestedApp");
    TestedApps.chrome.Run();
  }
  else
  {
    Log["Event"]("Launching Browser using conventional method.");
    Browsers.Item(SelectedBrowser).Run();
  }

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