Don't use execute script here - use the Python bindings to query the HTML in the page. @ypwalter can help you get this bit right.