# Mailinator and firefox

**URL:** <https://forum.robotframework.org/t/mailinator-and-firefox/8289>\
**Category:** Browser\
**Created:** [17 January 2025 09:36 UTC](https://forum.robotframework.org/t/mailinator-and-firefox/8289 "2025-01-17T09:36:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rasjani](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rasjani](https://forum.robotframework.org/u/rasjani)\
**Post date:** [17 January 2025 09:36 UTC](https://forum.robotframework.org/t/mailinator-and-firefox/8289/1 "2025-01-17T09:36:16Z")

</div>

This is a bit weird one. I have test scenario where i need to fetch OTP via email and the process has been working fine for over 6 months when i’ve been strictly using Chromium as a browser. Recently i added firefox also into the testruns and I’m having problems with it.

I have a following keyword (extra stuff stripped away)

```robot
Open Inbox
  [Documentation] Short description.
  ...
  ... Args:
  ... ${email}: base portion of email to use for mailinator service.
  [Arguments] ${email} 

  VAR &{viewport_args} width=1920 height=1080
  New Browser ${DEFAULT_BROWSER} headless=${True} reuse_existing=${False}
  
  New Context
  ... viewport=${viewport_args}
  ... ignoreHTTPSErrors=${IGNORE_HTTPS_ERRORS}
  New Page ${MAILINATOR_INBOX}?to=${email}

```

On this case, DEFAULT\_BROWSER is set to firefox and MAILINATOR\_INBOX is `https://www.mailinator.com/v4/public/inboxes.jsp` - so far so good.

In log.html i can see following;

```python
05:04:13.609 INFO Successfully initialized new page object and opened url: https://www.mailinator.com/v4/public/inboxes.jsp?to=XXX_MY_EMAIL_HERE_XXX

```

And at this point i start polling for my OTP which fails after my timeout and screenshot is taken. When the fail eventually comes and i check the screenshot;

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/0/00cd0ff683b5b99f53557264a068f4cc561bde1f.png)

On chromium, that GO text field would contain `XXX_MY_EMAIL_HERE_XXX`.

Anyone seen this sort of thing happening ? Ofcourse it could be mailinator that it detects a headless firefox (as i cant reproduce this on desktop) but that feels bit odd of them.

Ofcourse in my case, im not testing mailinator so i can just use chrome.

---

<div class="post-metadata">

**Author:** ![CharlieScene](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/charliescene/32/3484_2.png) [@CharlieScene](https://forum.robotframework.org/u/CharlieScene)\
**Post date:** [17 January 2025 18:12 UTC](https://forum.robotframework.org/t/mailinator-and-firefox/8289/2 "2025-01-17T18:12:21Z")

</div>

Hi,

Just some thoughts:

- Does it work without the headless mode?
- The field is never filled even after a timeout or until the field contains the mail?
- And if you try to force the mail in the field?

I assume the field might be automatically field with js, so maybe firebox headless is in cause.

Regards  
Charlie

---

<div class="post-metadata">

**Author:** ![rasjani](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rasjani](https://forum.robotframework.org/u/rasjani)\
**Post date:** [17 January 2025 18:48 UTC](https://forum.robotframework.org/t/mailinator-and-firefox/8289/3 "2025-01-17T18:48:08Z")

</div>

> firebox headless is in cause.

That was my first quess too and didn’t try with desktop either cuz “fix” was just to use separate variable for mailinator part and always point it chromium. Nor did i see the state at the start of poll. I should actually have a har of the session but was too lazy to check and just ask if anyone has seen this as mailinator is somewhat often used in testing 🙂

---

<div class="post-metadata">

**Author:** ![CharlieScene](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/charliescene/32/3484_2.png) [@CharlieScene](https://forum.robotframework.org/u/CharlieScene)\
**Post date:** [17 January 2025 19:40 UTC](https://forum.robotframework.org/t/mailinator-and-firefox/8289/4 "2025-01-17T19:40:25Z")

</div>

Yes, so personally I don’t use Mailinator, so never saw this 😁  
But I was wondering reason about the missing address.  
Tbh I rather use IMAP to get mails contents and extract token or otp since now.
