Hi all i am using selenium backed webdriver i am automating some third party site so i don't have any access to the code of that site problem is that my selenium test case works well firefox but when i use chromedriver it gives an exception Element is not clickable at point (693, 14). Other element would receive the click i read on some blog that using the lines of code makes the problem go the lines are given below
WebElement elementToClick = driver.findElement(By.id("create_item_button"));
((JavascriptExecutor)driver).executeScript("window.scrollTo(0," + elementToClick.getLocation().y + ")");
elementToClick.click();
But this does not help can any one suggest me any work around for that my code is as given below
selenium.click("//img[@alt='Upload']");
selenium.click("link=basic uploader");
WebElement fileUpload = driver.findElement(By.id("file-box"));
((JavascriptExecutor)driver).executeScript("window.scrollTo(0,"+fileUpload.getLocation().y+")");
Thread.sleep(1000);
fileUpload.sendKeys("C:\\Users\\Shoaib\\Desktop\\kkk.java");