run Javascript on page before other scripts are executed

  • 1 Replies
  • 1303 Views
*

Ali

  • *
  • 8
run Javascript on page before other scripts are executed
« on: July 03, 2016, 19:08:41 pm »
I'm using selenium in python to test my webapp. I want to run a script of my own before any other Javascript from the client gets loaded and executed.

Is it possible with selenium ?

*

Oren

  • **
  • 59
Re: run Javascript on page before other scripts are executed
« Reply #1 on: July 31, 2016, 10:30:56 am »
Selenium can execute JS code with the JavaScriptExecutor, but I don't think it will run before the page is loaded.

 

Sitemap 1 2 3 4 5 6 7 8