NoSuchElementException selenium phantomjs python -


i using selenium python , phantomjs scheduling job.

  • selenium-3.4.3
  • python-3.3
  • phantomjs-2.1.1

the code works fine using chrome ,selenium , python while fails phantomjs .

it shows following error-

  file "c:\users\rahul mukherjee\desktop\phantom-js selenium\mysql.py", line  76, in <module> username = driver.find_element_by_xpath("//*[@name='j_username' ,   @id='username']")  file "c:\users\rahul mukherjee\appdata\local\programs\python\python36- 32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 313, in  find_element_by_xpath  return self.find_element(by=by.xpath, value=xpath)  file "c:\users\rahul mukherjee\appdata\local\programs\python\python36- 32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 791, in  find_element 'value': value})['value'] file "c:\users\rahul mukherjee\appdata\local\programs\python\python36- 32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 256, in  execute self.error_handler.check_response(response) file "c:\users\rahul mukherjee\appdata\local\programs\python\python36- 32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 194,   in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.nosuchelementexception: message: {"errormessage":"unable find element xpath '//*[@name='j_username'   , @id='username']'",  '","request":{"headers":{"accept":"application/json","accept- 


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -