Is there a way to change desired capabilities once driver is initialized?

Hi All,

I am setting autoacceptalert=true for the iOS driver that i create.

but one of the test case that i am working on requires me to verify the alert text, now is there any way i can make autoacceptalert=false for this test.

I am not sure if you can turn autoacceptalert off programmatically. One possibility is to set autoacceptalert off all the time and you have to dismiss the alert by yourself. I think it’s doable because you can detect alert modal whenever it appears