I'm using Selenium
& NodeJS
to automate download tests on Chrome
.
I noticed that Chrome's
download protection behaves differently when clicking a link or redirecting to URL automatically vs actually typing the URL in the address bar and clicking ENTER (Chrome protection doesn't mark some files as blocked when actually typing the URL).
What I tried till now and still got blocks for some files:
driver.get(url)
driver.executeScript
to redirect to the urldriver.executeScript
to create A element and clicking on it.- opening a new tab and then
driver.get(url)
Is there a way to imitate the address bar typing and ENTER clicking with Selenium
?
from How to imitate URL typing and ENTER clicking on Chrome with Selenium and NodeJS
No comments:
Post a Comment