如何使用javascript在Selenium Webdriver中上传没有senKeys输入的图像?

时间:2018-07-25 10:33:22

标签: javascript selenium-webdriver

{
"marketdata": {
 "columns": [
  "SECID",
  "BID",
  "OFFER",
  "SPREAD",
  "LCURRENTPRICE",
  "UPDATETIME",
  "TIME",
  "SYSTIME"
],
"data": [
  [
    "AFLT",
    121.4,
    121.5,
    0.1,
    121.5,
    "12:25:45",
    "12:25:34",
    "2018-07-25 12:40:45"
  ],
  [
    "KRKNP",
    11400,
    11430,
    30,
    11400,
    "12:25:00",
    "12:16:12",
    "2018-07-25 12:40:00"
  ],
  [
    "LKOH",
    4347,
    4349.5,
    2.5,
    4349.5,
    "12:25:46",
    "12:25:40",
    "2018-07-25 12:40:46"
  ]
 ]
 }
}

以上代码由点击图片上传按钮决定。之后,我不知道如何选择特定的图像/文件来上传。

0 个答案:

没有答案