Skip to content

Instantly share code, notes, and snippets.

View hl2055's full-sized avatar
😉
Don't forget to smile ~

H L hl2055

😉
Don't forget to smile ~
View GitHub Profile
@algotrader-dotcom
algotrader-dotcom / Selenium webdriver wait for ajax with Python
Created December 10, 2015 06:05
Selenium webdriver wait for ajax with Python
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.common.exceptions import WebDriverException
def ajax_complete(driver):
try:
return 0 == driver.execute_script("return jQuery.active")
except WebDriverException:
pass
@diorahman
diorahman / client.html
Created December 26, 2011 03:34
Ajax, call jQuery POST to node.js expressjs
<html>
<head>
<title>jsonp test</title>
<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script type="text/javascript">
$(function(){
$('#select_link').click(function(e){
e.preventDefault();
console.log('select_link clicked');