I have a page control that spans the whole width of the screen. When tapping on the left side, the valueChanged
function is called, and pageControl.currentPage
is less one less. When tapping on the right side, the opposite happens. How do I simulate the tap to the left or right in UI Test?
let pc = XCUIApplication().pageIndicators["pageControl"]
pc.tap() // cannot specify left or right hand tap