title: How to upload file in Selenium if input is created after javascript PYTHON
body: <p>By default there is no input in the site im visiting.
  There is a script that runs and it is the only place where i am being able to find </p>
  
  <pre><code>&lt;input type='file'/&gt;
  
  ;
  (function(e) {
      var c = {};
      c.fileapi = e("&lt;input type='file'/&gt;").get(0).files !== undefined;
      c.formdata = window.FormData !== undefined;
      e.fn.ajaxSubmit = function(g) {
          if (!this.length) {
              d("ajaxSubmit: skipping submit process - no element selected");
              return this
          }
          var f, u, j, l = this;
          if (typeof g == "function") {
              g = {
                  success: g
              }
          }
          f = this.attr("method");
          u = this.attr("action");
          j = (typeof u === "string") ? e.trim(u) : "";
          j = j || window.location.href || "";
          if (j) {
              j = (j.match(/^([^#]+)/) || [])[1]
          }
          g = e.extend(true, {
              url: j,
              success: e.ajaxSettings.success,
              type: f || "GET",
              iframeSrc: /^https/i.test(window.location.href || "") ? "javascript:false" : "about:blank"
          }, g);
          var p = {};
          this.trigger("form-pre-serialize", [this, g, p]);
          if (p.veto) {
              d("ajaxSubmit: submit vetoed via form-pre-serialize trigger");
              return this
          }
          if (g.beforeSerialize &amp;&amp; g.beforeSerialize(this, g) === false) {
  </code></pre>
  
  <p>Do you know how can i send_keys to that element? Is it complex?</p>