我正在使用:
所以,当我开始使用search = driver.find_element_by_xpath("""//*[@id="txtBoxSearch"]/input[@type="text"]""")
应用时,应用就会崩溃。
我得到了:
$kernel = new AppKernel('prod', false);
使用[2018-02-22 15:40:45] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Call to a member function has() on null" at /var/www/html/Brokers/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line 375 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Call to a member function has() on null at /var/www/html/Brokers/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php:375)"} []
一切正常。
P.S。 我也这样做Vendor updates broke FOS User Bundle with "Call to a member function has() on a non-object"