How to click on the ok or cancel button within the chrome alert box?

Use Activity Invoke Code
Output your browser as variable and paste this line: ChromeDriver.SwitchTo.Alert.Accept