Author: frank

Read the doc from the right place 0

Read the doc from the right place

Selenium on Python http://selenium-python.readthedocs.org/api.html The WebDriver API http://selenium-python.readthedocs.org/api.html?highlight=phantom#module-selenium.webdriver.remote.webdriver jQuery http://api.jquery.com/ PHP http://php.net/docs.php which what I consider A-class documentation with user-submitted sample code at bottom of doc pages as a bonus.

Submit a form with ajax 0

Submit a form with ajax

This is a basic operation that you might have to do when upgrading an old web app. One solution is using jQuery .serialize() function   Method #1: Sent using CGI params key=value pairs: var...

Wait until document loaded 0

Wait until document loaded

if (document.readyState === "complete") { bindAdminUpload(); } else { addEvent(window, "load", function() { bindAdminUpload(); }); }

NameError: global name 'By' is not defined 0

NameError: global name 'By' is not defined

Problem: Traceback (most recent call last): File "seleniumPhantomJS.py", line 153, in selenium_phantom_web_direct_rtp_create_test("10.65.11.145") File "seleniumPhantomJS.py", line 118, in selenium_phantom_web_direct_rtp_create_test isPresent = is_element_present(driver, By.CSS_SELECTOR, "article.notifier-log") NameError: global name 'By' is not defined [flemieux@atom makito]$ NameError: global...