我无法识别显示且可见的搜索表单

时间:2017-08-14 07:12:47

标签: selenium selenium-webdriver automation

我无法识别显示且可见的搜索表单。类型是隐藏的。

<form id="searchForm" name="searchForm" method="post" action="/mpstage/pages/content/shop?jfwid=5bcbhia8v" enctype="application/x-www-form-urlencoded">
   <input name="searchForm_SUBMIT" value="1" type="hidden"/>

1 个答案:

答案 0 :(得分:0)

试试这个。

 let refreshImage = UIImageView()
    refreshImage.image = UIImage(named: "RefreshIcon")
    refreshControl.backgroundColor = UIColor.clear
    refreshControl.tintColor = UIColor.clear
    refreshControl.addSubview(refreshImage)
    tableview.addSubview(refreshControl)

首先,我们将隐藏元素存储为对象。然后使用js执行器单击元素