我需要将属性值保存到一个变量中,以便发送到后面的对象,以验证我上传的图片是否可以使用我获得的src属性访问。稍后,将对图片列表进行搜索,以找到该特定上传的图片。
getPictureSrc: function() {
var el = $('img');
var uniqueId = el.getAttribute('src');
return uniqueId;
},
findPicture: function() {
browser.get('a different webpage then the upl