Webdriver binding NOT working.... | Selenium Forum
M
Posted on 29/09/2015
Hi Ashish / All,

I have an situation where I am initializing and binding the webdriver in three

===========================

public static FirefoxProfile profile=null;
public static WebDriver dr=null;
public static EventFiringWebDriver driver=null;

=============================
profile = new FirefoxProfile();
FirefoxProfile profile = new FirefoxProfile();
String path=Constants.Output_File_Path;
profile.setPreference("browser.download.folderList", 2);
profile.setPreference("browser.download.dir", path);
profile.setPreference("browser.download.manager.alertOnEXEOpen", false);
profile.setPreference("browser.helperApps.neverAsk.saveToDisk", "text/plain");

dr = new FirefoxDriver(profile);

===============================

driver = new EventFiringWebDriver(dr);
driver.manage().window().maximize();

================================

Page.driver.findElement(By.xpath(OR.getProperty(xpathKey))).click();

The issue I am facing is when I download the file i have a click method which clicks on the link and download the file, however this is NOT Happening... the same code i do in the other way... it working..

Is anything wrong above ?


Thanks


Regards
J

M
Replied on 30/09/2015

when its not working then are getting any exception?