Monday 15 April 2013

PHP : execute python file contains Selenium -


I have a PHP file in which I have a script execution python that contains Selenium webdriver but it gives me an error in the permission: Php:
  & lt ;? Php echo shell_exec ("dragon test.py 2> and 1"); ? & Gt;   

test.py:

  import selenium. Webdiver.com from webdeveloper imported selenium key driver = webdriver.firefox () driver.get ("Http: //www.python.org") driver.title elem = "" Python "in driver.find_element_by_name (" q ") say elem.send_keys (" selenium ") elem.send_keys (Keys.RETURN)" Google "Any suggestions in Driver.title   

??

Change the file premisions? What is a + r test.py? What error do php give you exacly?

No comments:

Post a Comment