0

We have a Coded UI hybrid framework and what ever the actions that I have to perform there is a generic code which basically does that. Like Mouse click events.

So here is my problem. Control is visible but through coded ui it is throwing control is not visible error.

It is working fine in IE8,IE9 and IE10 the issue seems to exists only in IE11

Mouse.Click(Uicontrol);

However when the script was running if I scroll and make sure that the control is visible. Mouse Click event was successful.

I have tried various options like EnsureClickable but with no luck.

Please let me know how i can resolve this issue. That would be great help.

Also please let me know if you need any more information to understand the problem. Thanks

Update : The below is the generic code.

case Constants.Action:
  try
  {
    //Saving execution time by checking if testdata value was blank or NOT.
    if (pair.Value == "")
    {
      break;
    }
    MasterControls control = testMasterControlsDataOrdered.FirstOrDefault(cn => cn.ControlLogicalName == pair.Key); //Iteration fix    

And below somewhere

if (pair.Value.ToString().ToUpper() == "CLICK")
{
  Mouse.Click(uiControl);
  uiLogFile.WriteToLogFile(CommomUtilities.MessageType.Info, "Action Click on " + control.ControlType + ", " + control.ControlLogicalName + " is done.");
}

The test data consists of Action --- Click and that is how I basically do action events.

jessehouwing
  • 106,458
  • 22
  • 256
  • 341
Bendram
  • 120
  • 1
  • 9
  • Try to use the DrawHighlight() on that control just to see if it's finding the control that you are expecting to see. – eetawil Nov 26 '14 at 14:04
  • The issue is with the coded ui. The coded Ui when identifying the controls. It is searching against the friendly name property which has some unwanted white spaces. The issue can be resolved by removing Friendly name from the Property search details. Or Trim the Friendly name Properties. – Bendram Feb 16 '15 at 14:41

0 Answers0