Category Archives: Javascript

Selenium Webdriver – Run Javascript in Python

Selenium Webdriver provide a way to run(call) Javascript code in your test. There is a Javascript execution function for each language. For Python, this function is execute_script(code). you can see a basic usage of this function at below. After run it, you can see alert pop up with. also, you can see that appeared pop… Read More »

Selenium Webdrvier – Wait jQuery Ajax Request Complete in Python

if you have a jQuery Ajax request in your test web page, you should wait to request to complete. Otherwise, unexpected behaviours can occur. in Selenium Webdriver, we can perform by Javascript running function: execute_script() jQuery provide a parameter to check request status. “active” is one of jQuery library. if value is 1 it means… Read More »