Here is what I got and it fails, nothing returns:
C#:
HtmlElement popWindows = instance.ActiveTab.FindElementsByAttribute ( "div" , "role" , "dialog" , "regexp" ) ;
return 2;
he = popWindows[3].FindElementsByAttribute ( "input" , "title" , "Choose a file to upload" , "regexp" ) ;
if (he.IsVoid) return -1;
instance.ActiveTab.FullEmulationMouseMoveToHtmlElement(he);
return 1;
C#:
HtmlElement popWindows = instance.ActiveTab.FindElementsByAttribute ( "div" , "role" , "dialog" , "regexp" ) ;
return 2;
he = popWindows[3].FindElementsByAttribute ( "input" , "title" , "Choose a file to upload" , "regexp" ) ;
if (he.IsVoid) return -1;
instance.ActiveTab.FullEmulationMouseMoveToHtmlElement(he);
return 1;