参考大神作品:vhttps://blog.csdn.net/u011541946/article/details/74359517 注:如果在上传文件动作完成后需要定位元素,并且元素在iframe内,则需要重新切换iframe才能找到元素。