Note that there are some explanatory texts on larger screens.

plurals
  1. POControl not visible to a Coded UI Test when opening the browser from within the test
    primarykey
    data
    text
    <p>I try to click a custom control on a web page as part of a Coded UI Test. As part of the test, a browser windows is opened using </p> <blockquote> <p>browser = BrowserWindow.Launch(new System.Uri("<a href="http://www.mydomain/MyLoginPage" rel="nofollow">http://www.mydomain/MyLoginPage</a>"));</p> </blockquote> <p>The test then logs in to our system and supposed to click a the custom tab control (similar to tabs on a browser). It then fails saying that the control is not visible with the following error</p> <blockquote> <p>Result Message: Test method MyTest.CodedUITest1.CodedUITestMethod1 threw exception: Microsoft.VisualStudio.TestTools.UITest.Extension.FailedToPerformActionOnHiddenControlException: Cannot perform 'Click' on the hidden control.</p> </blockquote> <p>Nothing seems to block the control but TryGetClickablePoint() returns false, and FindMatchingControls() returns 1.</p> <p>However, when i open the browser and perform the login myself, then start the test from the Click method, it works fine.</p> <p>As far as i know, the custom control is generated using Mocha UI which is based on javascript(i don't know the specifics). The test runs on IE 9.</p> <p>I updated VS2012 with update 4 as suggested in this page <a href="http://blogs.msdn.com/b/visualstudioalm/archive/2013/09/17/coded-ui-mtm-issues-on-internet-explorer-with-kb2870699.aspx" rel="nofollow">http://blogs.msdn.com/b/visualstudioalm/archive/2013/09/17/coded-ui-mtm-issues-on-internet-explorer-with-kb2870699.aspx</a> but it didn't make any difference.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload