Skip to content

Instantly share code, notes, and snippets.

View rotemmiz's full-sized avatar

Rotem Meidan rotemmiz

View GitHub Profile
@rotemmiz
rotemmiz / recordingSpec.js
Created May 19, 2020 09:26
Detox Recorder Output example
describe('My Recorded Spec', () => {
it('should follow my recorded test', async () => {
await element(by.label("Button")).tap();
await element(by.label("Button")).tap();
await element(by.id("MySwitch")).tap();
await element(by.id("MySwitch")).tap();
await element(by.type("UIView")).atIndex(37).tap();
await element(by.type("UIView")).atIndex(37).longPress(1002);
await element(by.id("MyDatePicker")).setDatePickerDate("2020-05-21T10:37:04+03:00", "yyyy-MM-dd'T'HH:mm:ssZZZZZ");
await element(by.id("MyDatePicker")).setDatePickerDate("2020-05-21T09:37:04+03:00", "yyyy-MM-dd'T'HH:mm:ssZZZZZ");
{
elementSafeBounds: { y: 0, x: 0, width: 375, height: 17 },
label: 'Tap Me',
frame: { y: 84, x: 0, width: 375, height: 17 },
activationPoint: { x: 187, y: 8 },
text: 'Tap Me',
elementBounds: { y: 0, x: 0, width: 375, height: 17 },
visible: true,
normalizedActivationPoint: { x: 0.5, y: 0.5 },
enabled: true,