We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51399ac commit abb15d2Copy full SHA for abb15d2
src/TestStack.White/UIItems/UIItem.cs
@@ -431,12 +431,15 @@ public virtual void RaiseClickEvent()
431
/// </summary>
432
public virtual void DrawHighlight()
433
{
434
- Rect rectangle = this.AutomationElement.Current.BoundingRectangle;
+ new Thread(() =>
435
+ {
436
+ Rect rectangle = this.AutomationElement.Current.BoundingRectangle;
437
- if (rectangle != Rect.Empty)
- {
438
- new Drawing.FrameRectangle(rectangle).Highlight();
439
- }
+ if (rectangle != Rect.Empty)
440
+ new Drawing.FrameRectangle(rectangle).Highlight();
441
+ }
442
+ }).Start();
443
}
444
445
0 commit comments