Now I am automate IOS real device doing signup process

I am doing now Automation with IOS real devices signup process

In this signup process I have one scenario there I have to send mail to on mail id and after send mail I have to open gmail and click that mail id in IOS Real devices. Now I am able to send mail from my application to gmail but I have question How I open Gmail and click my email conformation. I provide you my code screen short also so you all better understand.

import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint

import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase

import static com.kms.katalon.core.testdata.TestDataFactory.findTestData

import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject

import static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject

import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint

import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW

import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile

import com.kms.katalon.core.model.FailureHandling as FailureHandling

import com.kms.katalon.core.testcase.TestCase as TestCase

import com.kms.katalon.core.testdata.TestData as TestData

import com.kms.katalon.core.testng.keyword.TestNGBuiltinKeywords as TestNGKW

import com.kms.katalon.core.testobject.TestObject as TestObject

import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS

import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI

import com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows

import internal.GlobalVariable as GlobalVariable

import org.openqa.selenium.Keys as Keys

import com.kms.katalon.core.annotation.Keyword as Keyword

Mobile.startApplication(’/Users/imac/Downloads/curaprox-app-affiliate-1.0.207.ipa’, true)

Mobile.tap(findTestObject(‘Object Repository/SignupPro/XCUIElementTypeOther - South Africa’), 0)

Mobile.tap(findTestObject(‘Object Repository/SignupPro/XCUIElementTypeOther - NEXT’), 0)

Mobile.tap(findTestObject(‘Object Repository/SignupPro/XCUIElementTypeOther - Register new practice Would you like to be connected with your patients Register your practice and start receiving more benefits for your business’),

Mobile.tapAndHold(findTestObject(‘Object Repository/SignupPro/XCUIElementTypeButton - Allow While Using App’), 0, 0)

Mobile.setText(findTestObject(‘Object Repository/SignupPro/XCUIElementTypeOther - Search location’), ‘south africa’, 0)

Mobile.tap(findTestObject(‘Object Repository/SignupPro/XCUIElementTypeOther - South African Nursing Council, Pretorius Street, Arcadia, Pretoria, South Africa’),

Mobile.tap(findTestObject(‘Object Repository/SignupPro/XCUIElementTypeOther - CONFIRM LOCATION’), 0)

Mobile.setText(findTestObject(‘Object Repository/SignupPro/XCUIElementTypeOther - Practice Name’), ‘Test IOS’, 0)

Mobile.setText(findTestObject(‘Object Repository/SignupPro/XCUIElementTypeOther - Phone No’), ‘2435636467’, 0)

Mobile.swipe(29000, 400, 10, 50)

Mobile.tap(findTestObject(‘Object Repository/SignupPro/XCUIElementTypeOther - NEXT (1)’), 0)

Mobile.tap(findTestObject(‘Object Repository/SignupPro/XCUIElementTypeOther - NEXT (2)’), 0)

Mobile.setText(findTestObject(‘Object Repository/SignupPro/XCUIElementTypeOther - First Name’), ‘Test IOS Cura’, 0)

Mobile.setText(findTestObject(‘Object Repository/SignupPro/XCUIElementTypeOther - Last Name’), ‘more’, 0)

Mobile.tap(findTestObject(‘Object Repository/SignupPro2/XCUIElementTypeOther - I am a dental professional’), 0)

Mobile.tap(findTestObject(‘Object Repository/SignupPro2/XCUIElementTypeOther - I am a dental professional’), 0)

String number = CustomKeywords.‘help_keyword_RandomEmail.getEmail’(’’, ‘’)

Mobile.setText(findTestObject(‘SignupPro/XCUIElementTypeOther - Dental Professional No’), number, 0)

String mail = CustomKeywords.‘help_keyword_RandomEmail.getEmail’(‘curatest+rzsa’, ‘morphos.is’)

Mobile.setText(findTestObject(‘SignupPro/XCUIElementTypeOther - Email’), mail, 0)

Mobile.setText(findTestObject(‘Object Repository/SignupPro/XCUIElementTypeOther - Password’), ‘Ringzero123’, 0)

Mobile.tap(findTestObject(‘Object Repository/SignupPro/XCUIElementTypeStaticText - PASSWORD’), 0)

Mobile.tap(findTestObject(‘Object Repository/SignupPro/XCUIElementTypeOther - NEXT (3)’), 0)

Mobile.tap(findTestObject(‘Object Repository/SignupPro2/XCUIElementTypeOther - ACCEPT’), 0)

‘Launch Browser’

WebUI.openBrowser(‘mail.google.com’)

‘Wait for Page Load’

WebUI.waitForPageLoad(1000)

Mobile.tap(findTestObject(‘Object Repository/SignupPro2/XCUIElementTypeButton - no-replycuraprox.app Curaprox Pro app, Email Confirmation’),

Mobile.tap(findTestObject(‘Object Repository/SignupPro2/XCUIElementTypeStaticText - Confirm email’), 0)

Mobile.tap(findTestObject(‘Object Repository/SignupPro2/XCUIElementTypeStaticText - Open’), 0)

Mobile.tap(findTestObject(‘Object Repository/SignupPro2/XCUIElementTypeOther - No, I have not being referred by anyone’),

Mobile.tap(findTestObject(‘Object Repository/SignupPro2/XCUIElementTypeOther - NEXT (3)’), 0)

Mobile.tap(findTestObject(‘Object Repository/SignupPro2/XCUIElementTypeOther - Skip or Ill do later’), 0)

Mobile.closeApplication()