Does Firefox support position: relative on table elements?

Easy and most proper way would be to wrap the contents of the cell in a div and add position:relative to that div. example: <td> <div style=”position:relative”> This will be positioned normally <div style=”position:absolute; top:5px; left:5px;”> This will be positioned at 5,5 relative to the cell </div> </div> </td>

WebDriverException: ‘geckodriver’ executable needs to be in PATH even though it is

This error message… WebDriverException: ‘geckodriver’ executable needs to be in PATH. …implies that the GeckoDriver wasn’t found in the expected default location. Solution As you are using MAC based System you need to pass the Key executable_path along with the Value referring to the absolute path of the GeckoDriver as follows : from selenium import … Read more

JavaScript console.log causes error: “Synchronous XMLHttpRequest on the main thread is deprecated…”

This happened to me when I was being lazy and included a script tag as part of the content that was being returned. As such: Partial HTML Content: <div> SOME CONTENT HERE </div> <script src=”https://stackoverflow.com/scripts/script.js”></script> It appears, at least in my case, that if you return HTML content like that via xhr, you will cause … Read more

Access to file download dialog in Firefox

I have a solution for this issue, check the code: FirefoxProfile firefoxProfile = new FirefoxProfile(); firefoxProfile.setPreference(“browser.download.folderList”,2); firefoxProfile.setPreference(“browser.download.manager.showWhenStarting”,false); firefoxProfile.setPreference(“browser.download.dir”,”c:\\downloads”); firefoxProfile.setPreference(“browser.helperApps.neverAsk.saveToDisk”,”text/csv”); WebDriver driver = new FirefoxDriver(firefoxProfile);//new RemoteWebDriver(new URL(“http://localhost:4444/wd/hub”), capability); driver.navigate().to(“http://www.myfile.com/hey.csv”);

jQuery in Greasemonkey 1.0 conflicts with websites using jQuery

Greasemonkey 1.0, radically changed the way the sandbox works, busting thousands of scripts. This is a huge problem, and I hope you will join me in voicing your opinion/experiences on the principle bug report for this issue. The Greasemonkey blog claims that you can workaround the issue with the following: this.$ = this.jQuery = jQuery.noConflict(true); … Read more

Selenium using Java – The path to the driver executable must be set by the webdriver.gecko.driver system property

The Selenium client bindings will try to locate the geckodriver executable from the system PATH. You will need to add the directory containing the executable to the system path. On Unix systems you can do the following to append it to your system’s search path, if you’re using a bash-compatible shell: export PATH=$PATH:/path/to/geckodriver On Windows … Read more