Speed Up Time Passing of the Browser with Javascript Command or Selenium
NickName:Code8138134 Ask DateTime:2021-05-10T02:53:39

Speed Up Time Passing of the Browser with Javascript Command or Selenium

I'm working with JavaScript and Selenium to automate some tasks on a webpage I use a lot on Chrome.

The webpage has a form field which has some sort of embedded waiting time. After you finished typing, it waits like 10 seconds to give you the answer you need.

I think it's a mechanism similar to the one describe on the answer to this question (Run javascript function when user finishes typing instead of on key up?). It's clearly design to wait the user to finish typing. But when someone is using Selenium to fill the form, it`s not necessary at all.

I would like that Selenium could input the value on the field and the page would instantaneously give me the answer. How could I do that?

I thought that maybe it would be possible to speed up the time passing of the browser? Maybe by running a script on Selenium or on the Console of Chrome itself?

I've tried already to change the browser time after I typed something, like suggested here: Change browser time to test return value of Date()?. And I`ve tried to change the Windows time after I typed something. It didn’t worked. So I thought that maybe it would be possible to set Chrome so time passes faster on the browser.

Could someone teach me how to do that? Or does someone have another idea to solve this problem? Thank you!

Copyright Notice:Content Author:「Code8138134」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/67461311/speed-up-time-passing-of-the-browser-with-javascript-command-or-selenium

More about “Speed Up Time Passing of the Browser with Javascript Command or Selenium” related questions

Speed Up Time Passing of the Browser with Javascript Command or Selenium

I'm working with JavaScript and Selenium to automate some tasks on a webpage I use a lot on Chrome. The webpage has a form field which has some sort of embedded waiting time. After you finished typ...

Show Detail

How to speed up SauceLabs javascript queries in selenium tests?

I am running Selenium tests on the Chrome browser in SauceLabs and find the performance exceptionally slow. Specifically, javascript queries (used to select objects) return in about 200ms in Sauce

Show Detail

Speed up selenium webdriver?

I'm using selenium webdriver to automate web page usage. Headless browser not allowed. Selenium seems rather slow at finding multiple elements on a single page that is fully loaded. Does anyon...

Show Detail

Is there a way to speed up web scraping with selenium?

I am scraping the Twitter website. (API is not used to retrieve historical data.) .Smaller ranges will come up sooner, but if you make a larger range, you'll have to spend a lot of time. Also, the...

Show Detail

Selenium is taking too much time to execute a command after handing browser authentication pop up

I am facing a very strange issue with Selenium WebDriver. After login into the website, our application shows a basic authentication pop up which I have handled through AutoIT. Problem is after the...

Show Detail

How to speed up selenium Python web crawler

I have a web crawler built by selenium Python for pages that use JavaScript for content. The crawler works well, but it takes a lot of time to end (sometimes takes a couple of days!!). How can I sp...

Show Detail

speed up selenium webdriver

have a simple selenium script used to check if a username is available or not, here the code require "selenium-webdriver" driver = Selenium::WebDriver.for :firefox username = 'test' driver.navigat...

Show Detail

Optimizing high-speed browser interaction with Selenium/Puppeteer

I wish to create a script that can interact with any webpage with as little delay as possible, excepting network delay. This is to be used for arbitrage trading so any tips in this direction are we...

Show Detail

Setting Selenium RC speed via command line

I'm using SeleniumRC to run some selense tests via command line. This works mostly fine, but some tests are failing because the execution speed is too high. How can I set the test runner's default

Show Detail

Selenium in -browserSessionReuse mode launchs a new browser

I'm trying the -browserSessionReuse Selenium mode to speed up my tests but i've noticed a strange behaviour. The purpose of this mode is avoid the time wasted opening browsers between tests, and t...

Show Detail