Beispiel #1
0
        public UIControlBase GetControlFromPoint(Point pt)
        {
            //watin handles return active browser with index = 0
            WatBrowser focusedBrowser = (WatBrowser)GetChildren()[0];
            //get the abs bounds relative to the page top left

            WatinControl element = focusedBrowser.GetElementFromPoint((int)pt.X - (int)focusedBrowser.Layout.Left, (int)pt.Y - (int)focusedBrowser.Layout.Top);

            if (element != null)
            {
                return(element);
            }

            return(null);
        }
Beispiel #2
0
 public WatinBaseControl(WatinControl elementWithChilds, WatinBaseTypes type)
 {
     _parent   = elementWithChilds;
     this.type = type;
 }