How to accept (allow) location on Android Chrome?

Hi all;

We are testing our application on mobile browsers also. Due to the GEO fencing features, the location services should be allowed on browsers.
How to configure Katalon Studio to allow the location services on Android Chrome each time the test gets executed.
When a new browser instance gets launched, it asks to allow the location and we are unable to find object (locator) to click on this button.
Is there by any chance a way to click this ‘Allow’ button on Android Chrome ?
We tried different built-in keywords and none of them could do that.

Hi Vinh,

we went to Project > Settings > Default > Mobile > Android > selected a mobile device > added what you suggested :




But it doesn’t seem to work.
While running the tests on the Android mobile browser, we still get a dialog box prompting to allow the location tracking.
Maybe a config mistake on our side ?

Thank you, Vinh Nguyen. Will try that!

Please try add this key into Project -> Settings -> Mobile -> Android

Key: autoGrantPermissions

Type: boolean

Value: true

Still doesn’t work, can you provide another solution ?