TestProject Forum

General => Selenium => Topic started by: Ali on July 03, 2016, 19:08:41 pm

Title: run Javascript on page before other scripts are executed
Post by: Ali 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 ?
Title: Re: run Javascript on page before other scripts are executed
Post by: Oren 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.