# Google flights macro issue

**URL:** <https://forums.distill.io/t/google-flights-macro-issue/2222>\
**Category:** Uncategorized\
**Created:** [July 4, 2023, 7:05pm UTC](https://forums.distill.io/t/google-flights-macro-issue/2222 "2023-07-04T19:05:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![harrypotter](https://forums.distill.io/letter_avatar_proxy/v4/letter/h/ee7513/32.png) [@harrypotter](https://forums.distill.io/u/harrypotter)\
**Post date:** [July 4, 2023, 7:05pm UTC](https://forums.distill.io/t/google-flights-macro-issue/2222/1 "2023-07-04T19:05:29Z")

</div>

I can create the macro and it will replay with no issues but when I create a new monitor using said macro I get an error after I try the first check:

Website: [https://www.google.com/travel/flights](https://www.google.com/travel/flights)

Macro playback failed at step: scroll.  
frame.waitForSelector: Timeout 30000ms exceeded.

Error evaluating expression: [“scroll”,[“selector”,{“meta”:{},“type”:“css”,“value”:“[aria-label=‘Enter\ your\ destination’] [aria-autocomplete=‘both’]”}],0,0,{“frame”:0}]  
Error evaluating statement: “scroll”, at Position: [7]

---

<div class="post-metadata">

**Author:** ![surya](https://forums.distill.io/letter_avatar_proxy/v4/letter/s/8e8cbc/32.png) [@surya](https://forums.distill.io/u/surya)\
**Post date:** [July 4, 2023, 7:35pm UTC](https://forums.distill.io/t/google-flights-macro-issue/2222/2 "2023-07-04T19:35:18Z")

</div>

Hi @harrypotter

Can you please share the details of the macro (you can export it as a JSON and share the file with us) for us to try & investigate the issue?

Cheers,  
Surya

---

<div class="post-metadata">

**Author:** ![harrypotter](https://forums.distill.io/letter_avatar_proxy/v4/letter/h/ee7513/32.png) [@harrypotter](https://forums.distill.io/u/harrypotter)\
**Post date:** [July 4, 2023, 7:47pm UTC](https://forums.distill.io/t/google-flights-macro-issue/2222/3 "2023-07-04T19:47:28Z")

</div>

Sure.  
[fadsfasdf-96dc82a5-1a9c-11ee-bee3-b7553bfd9a64.json](https://forums.distill.io/uploads/short-url/e69gY04kMWhofLEw9tKwaess5mG.json) (2.6 KB)

---

<div class="post-metadata">

**Author:** ![surya](https://forums.distill.io/letter_avatar_proxy/v4/letter/s/8e8cbc/32.png) [@surya](https://forums.distill.io/u/surya)\
**Post date:** [July 4, 2023, 8:44pm UTC](https://forums.distill.io/t/google-flights-macro-issue/2222/4 "2023-07-04T20:44:25Z")

</div>

hi @harrypotter

Please try the attached modified version of the macro.  
Sometimes you need to tweak some of the steps recorded in the macro to ensure it works.

[macro\_google\_flights\_modified.json](https://forums.distill.io/uploads/short-url/qrtUpQ3Aaj8aODtmXpmhqhCOo8W.json) (2.2 KB)

Cheers,  
Surya

---

<div class="post-metadata">

**Author:** ![harrypotter](https://forums.distill.io/letter_avatar_proxy/v4/letter/h/ee7513/32.png) [@harrypotter](https://forums.distill.io/u/harrypotter)\
**Post date:** [July 4, 2023, 8:52pm UTC](https://forums.distill.io/t/google-flights-macro-issue/2222/5 "2023-07-04T20:52:07Z")

</div>

Yes this one works thank you.  
But what tweaks do you recommend me do to make it work?

I’m having a similar issue with [delta.com](http://delta.com)

---

<div class="post-metadata">

**Author:** ![surya](https://forums.distill.io/letter_avatar_proxy/v4/letter/s/8e8cbc/32.png) [@surya](https://forums.distill.io/u/surya)\
**Post date:** [July 4, 2023, 9:03pm UTC](https://forums.distill.io/t/google-flights-macro-issue/2222/6 "2023-07-04T21:03:16Z")

</div>

Hi @harrypotter,

You can look into the details of the macro itself & compare it with the one you sent across.  
There was a scroll step in your macro which was not required & I simply deleted it. Furthermore, I added a waitDuration at a couple of points, to ensure the dynamic elements are loaded in the page.  
Hope that gives you an idea.

Cheers,  
Surya

---

<div class="post-metadata">

**Author:** ![surya](https://forums.distill.io/letter_avatar_proxy/v4/letter/s/8e8cbc/32.png) [@surya](https://forums.distill.io/u/surya)\
**Post date:** [July 6, 2023, 6:30pm UTC](https://forums.distill.io/t/google-flights-macro-issue/2222/7 "2023-07-06T18:30:02Z")

</div>

@harrypotter - If you are still facing an issue with macro on [delta.com](http://delta.com), please share the details & we’ll be happy to help you out.

Cheers,  
Surya
