python - I got error message while input string into selenium webdriver -
i have no idea why webdriver doesn't take string argument.
from selenium import webdriver driver = webdriver.firefox() name = "andre silva" headline = "football player , ceo" url = "https://www.linkedin.com/search/results/index/?keywords=" + name + " " + headline + "&origin=global_search_header" driver.get(url)
then got error message:
file "/users/jiajiefan/data_mining/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 268, in self.execute(command.get, {'url': url}) file "/users/jiajiefan/data_mining/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 256, in execute self.error_handler.check_response(response) file "/users/jiajiefan/data_mining/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.webdriverexception: message: 'url' not string
Comments
Post a Comment