title: How would I interact with this input box in Selenium Webdriver using Java?
body: <p>I can't get it to select the input name uxCompanyName.  I've tried using an xpath, selenium IDE, and a by.id, name, etc.  None of that worked for me. Any help would be appreciated. Thanks</p>
  
  <p>My script:</p>
  
  <pre><code>WebElement element = (WebElement)     ((JavascriptExecutor)driver).executeScript("document.getElementById('uxCompanyName').focus();");
  
  element.findElement(By.id("uxCompanyName")).clear();
  element.findElement(By.id("uxCompanyName")).sendKeys("password");
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;frameset rows="100%" frameborder="0" border="0" framespacing="0"&gt;
  &lt;frame scrolling="auto" allowtransparency="" src="CompList.aspx" noresize="noresize"     name="bottom"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;body onload="document.getElementById('uxBranchID').focus();"&gt;
  &lt;form id="fm" action="CompList.aspx" method="post" name="fm"&gt;
  &lt;div&gt;
  &lt;script type="text/javascript"&gt;
  &lt;script language="JavaScript"&gt;
  &lt;script type="text/javascript"&gt;
  &lt;link href="menu.css" type="text/css" rel="stylesheet"&gt;
  &lt;script src="/secure/admin/RadControls/Menu/Scripts/3_5_1/RadMenu_Utils_3_5_1.js"         type="text/javascript"&gt;
  &lt;script src="/secure/admin/RadControls/Menu/Scripts/3_5_1/RadHelper_3_5_1.js"     type="text/javascript"&gt;
  &lt;script src="/secure/admin/RadControls/Menu/Scripts/3_5_1/RadBrowser_3_5_1.js" type="text/javascript"&gt;
  &lt;script src="/secure/admin/RadControls/Menu/Scripts/3_5_1/RadMenu_Globals_3_5_1.js" type="text/javascript"&gt;
  &lt;script src="/secure/admin/RadControls/Menu/Scripts/3_5_1/RadMenu_3_5_1.js"     type="text/javascript"&gt;
  &lt;script src="/secure/admin/RadControls/Menu/Scripts/3_5_1/RadMenu_Keyboard_3_5_1.js" type="text/javascript"&gt;
  &lt;script src="/secure/admin/RadControls/Menu/Scripts/3_5_1/RadImageCache_3_5_1.js" type="text/javascript"&gt;
  &lt;table id="hroMenu_tbHeader" cellspacing="0" cellpadding="0" border="0" align="Center" style="width:95%;border-collapse:collapse;"&gt;
  &lt;br&gt;
  &lt;table width="95%" cellspacing="0" cellpadding="0" align="center"&gt;
  &lt;tbody&gt;
  &lt;tr&gt;
  &lt;td&gt;
  &lt;table width="800" cellspacing="0" cellpadding="0"&gt;
  &lt;tbody&gt;
  &lt;tr&gt;
  &lt;td&gt;
  &lt;table id="tblSearch" cellspacing="1" cellpadding="2" border="0" style="background-        color:Silver;width:300px;"&gt;
  &lt;tbody&gt;
  &lt;tr class="StandardRow"&gt;
  &lt;tr class="StandardRow"&gt;
  &lt;tr class="StandardRow"&gt;
  &lt;td&gt;
  &lt;b&gt;Company Name:&lt;/b&gt;
  &lt;/td&gt;
  &lt;td&gt;
  &lt;input id="uxCompanyName" type="text" style="font-size:11px;width:150px;" maxlength="40" name="uxCompanyName"&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr class="StandardRow"&gt;
  &lt;tr style="background-color:WhiteSmoke;"&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;
  &lt;/td&gt;
  &lt;td valign="bottom" align="right"&gt;
  &lt;/tr&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;tr&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;
  &lt;/form&gt;
  &lt;div id="i1110_g" style="position: absolute; left: -500px; top: -2000px; width: 140px; height: 0px; visibility: hidden; z-index: 901;"&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  &lt;/frame&gt;
  &lt;/frameset&gt;
  &lt;/html&gt;
  &lt;/frame&gt;
  &lt;/frameset&gt;
  &lt;/html&gt;
  &lt;/frame&gt;
  &lt;/frameset&gt;
  </code></pre>