When I call $(element).attr('class') when javascript context:top (chrome console), it's not working. When I change it to OffAmazonPaymentsWidgets1IFrame, it's working, beacause this element in an other iframe and have other html tag in this frame. How could I change javascript context?