I now found that the dyanmic_shipping_list
is inside a div
with id="shipping_rates"
and not within the iframe global_popup_login_frame
. Searching within the iframe therefore will give no result, hence the error. But calling
browser.find_by_id("dyanmic_shipping_list").find_by_tag("img")[1]['src']
results in
u'http://misc.dresslink.com/nap/images/images_common/icon-china.jpg'
is that what you want?
EDIT: I used firefox as a webbrowser instead of phantomjs. The commands are mainly the same for both, so you can develop your program using firefox and later make it work with phantomjs. With firefox you are also able to inspect the page with plugins like firebug, what will save you a huge amount of time