I am able to click the buttons by Accessibility Ids
I have two buttons >> Take A Photo and Choose from Library
driver.findElement(By.id(“Choose from Library”)).click();
Above one works for me.
Yours will be working like
driver.findElement(By.id(“Gallery”)).click();