title: Python Selenium PhantomJS - After disabling Javascript I can't click on anything or get any element
body: <p>I need help. After I've disabled Javascript on PhantomJS web driver I can't get or click any element using browser.find_element_by_id or any similar method.</p>
  
  <p>Here is how I set Phantom:</p>
  
  <pre><code>def phantom_settings_function():
      # PhantomJS settings
      phantom_settings = dict(DesiredCapabilities.PHANTOMJS)
      phantom_settings['phantomjs.page.settings.userAgent'] = ('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36')
      phantom_settings['phantomjs.page.settings.javascriptEnabled'] = False,   
      phantom_settings['phantomjs.page.settings.loadImages'] = False,
      phantom_settings['phantomjs.page.browserName'] = 'Google Chrome'
  
      return phantom_settings
  browser = webdriver.PhantomJS(desired_capabilities=phantom_settings_function(), service_args=['--ignore-ssl-errors=true', '--ssl-protocol=any'])
  </code></pre>
  
  <p>This is the how I how I try to click on element:</p>
  
  <pre><code>browser.find_element_by_id('c_btnPriceRange').click()
  </code></pre>
  
  <p>And I get this error:</p>
  
  <blockquote>
    <p>selenium.common.exceptions.NoSuchElementException: Message:
    {"request":{"headers":{"Accept":"application/json","Accept-Encoding":"identity","Connection":"close","Content-Length":"96","Content-Type":"application/json;charset=UTF-8","Host":"127.0.0.1:52780","User-Agent":"Python-urllib/3.5"},"httpVersion":"1.1","method":"POST","post":"{\"value\":
    \"c_btnPriceRange\", \"using\": \"id\", \"sessionId\":
    \"871daac0-147f-11e7-bfdf-4dce0d86731e\"}","url":"/element","urlParsed":{"anchor":"","query":"","file":"element","directory":"/","path":"/element","relative":"/element","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/element","queryKey":{},"chunks":["element"]},"urlOriginal":"/session/871daac0-147f-11e7-bfdf-4dce0d86731e/element"}}
    Screenshot: available via screen</p>
  </blockquote>
  
  <p>I've tried explicit wait for the element and it doesn't work, when I print the content of the web page I get complete HTML code with element in it. 
  Is disabling JavaScript making Selenium unable to run command or something?</p>
  
  <p>I really need help with this.</p>
  
  <p>Thank you</p>