Hi,
I am getting webdriver exception and shows that blocked iframe with same orgin policy and domain name and port must match
We got the exception when we switch to iframe in safari browser in mobile device . Could you please help me how we can switch to iframe in mobile safari browser when iframe is appearing from different domain
Kindly suggest
Instructor
Ashish Thakur Replied on 19/08/2020
This happens if iframe is loaded from some other domain.
The internal js commands are not able to switch to frame from a different domain than current as its a huge security risk
Do you have the URL from which iframe is loading?
Hi Ashish,
Thanks for the quick reponse.
The iframe is loading from
src="https://assets.braintreegateway.com/hosted-fields/2.32.0/hosted-fields-frame.html#4ac01752-9bfc-4147-962c-efec3ad20102" into our main page
Instructor
Ashish Thakur Replied on 19/08/2020
You can use driver.get for this url directly and load it into page