Automatic download on firefox

Hey @bhargavia

To go around this issue I have used the Robot Framework
.
import java.awt.Robot
import java.awt.event.KeyEvent

Robot rb = new Robot()
rb.keyPress(KeyEvent.VK_ENTER)
rb.keyRelease(keyEvent.VK_ENTER)

So basically the RobotClass will press the enter button and release the enter button for me.
The thing with this is, It has to be your active window… If you use your computer while the Robot wants to press something, it will press on the window/application which you are currently using.

Couldn’t find a better solution for this sadly. But this seems to be a common issue regarding test automation.

Hope it helps!