Is there a tag to turn off caching in all browsers? [duplicate]

This question already has answers here: How do we control web page caching, across all browsers? (29 answers) Closed 5 years ago. I read that when you don’t have access to the web server’s headers you can turn off the cache using: <meta http-equiv=”Cache-Control” content=”no-store” /> But I also read that this doesn’t work in … Read more

Selenium using Python – Geckodriver executable needs to be in PATH

I’m new to programming and started with Python about two months ago and am going over Sweigart’s Automate the Boring Stuff with Python text. I’m using IDLE and already installed the Selenium module and the Firefox browser. Whenever I tried to run the webdriver function, I get this: from selenium import webdriver browser = webdriver.Firefox() … Read more

Targeting only Firefox with CSS

Using conditional comments it is easy to target Internet Explorer with browser-specific CSS rules: <!–[if IE 6]> …include IE6-specific stylesheet here… <![endif]–> Sometimes it is the Gecko engine (Firefox) that misbehaves. What would be best way to target only Firefox with your CSS rules and not a single other browser? That is, not only should … Read more

How can I tell if a DOM element is visible in the current viewport?

Is there an efficient way to tell if a DOM element (in an HTML document) is currently visible (appears in the viewport)? (The question refers to Firefox.) 30 30 Now most browsers support getBoundingClientRect method, which has become the best practice. Using an old answer is very slow, not accurate and has several bugs. The … Read more

How to manually send HTTP POST requests from Firefox or Chrome browser

I want to test some URLs in a web application I’m working on. For that I would like to manually create HTTP POST requests (meaning I can add whatever parameters I like). Is there any functionality in Chrome and/or Firefox that I’m missing? 1 17 I have been making a Chrome app called Postman for … Read more

Hide scroll bar, but while still being able to scroll

I want to be able to scroll through the whole page, but without the scrollbar being shown. In Google Chrome it’s: ::-webkit-scrollbar { display: none; } But Mozilla Firefox and Internet Explorer don’t seem to work like that. I also tried this in CSS: overflow: hidden; That does hide the scrollbar, but I can’t scroll … Read more

How to open a new tab using Selenium WebDriver in Java?

Just for anyone else who’s looking for an answer in Ruby, Python, and C# bindings (Selenium 2.33.0). Note that the actual keys to send depend on your OS. For example, Mac uses CMD + T, instead of Ctrl + T. Ruby require ‘selenium-webdriver’ driver = Selenium::WebDriver.for :firefox driver.get(‘http://stackoverflow.com/’) body = driver.find_element(:tag_name => ‘body’) body.send_keys(:control, ‘t’) driver.quit Python from selenium import webdriver … 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