This element is present in a contact form page it is like an uploading url where we need to enter the url of the image and press enter
The code used by me is...with this code iam able to enter the text into that element but Enter key is not pressed
driver.findElement(By.xpath("//*[@id='uploading-url']/input")).sendKeys("http://www.mytabletbooksqa.com/ProductImages/test1.gif"); WebElement dropdownlists = driver.findElement(By.xpath("//*[@id='uploading-url']/input")); Actions builder=new Actions(driver); builder.clickAndHold(dropdownlists).sendKeys(dropdownlists, Keys.ENTER).release().build(); builder.perform();
The HTML code for that element is
<div id="uploading-url">
<p class="reduce-space"><img alt="web_image" src="/images/content/duelr/web.png"></p>
<input placeholder="Enter URLs to upload from web" type="text"></div>
Please guide me on what could possibly be going wrong here. Thank you for your time.