# Timeout in Keywords and Test Cases doesent work with Browser keywords

**URL:** <https://forum.robotframework.org/t/timeout-in-keywords-and-test-cases-doesent-work-with-browser-keywords/9186>\
**Category:** Browser\
**Created:** [19 August 2025 12:53 UTC](https://forum.robotframework.org/t/timeout-in-keywords-and-test-cases-doesent-work-with-browser-keywords/9186 "2025-08-19T12:53:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrik-kala](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/patrik-kala/32/4881_2.png) [@patrik-kala](https://forum.robotframework.org/u/patrik-kala)\
**Post date:** [19 August 2025 12:53 UTC](https://forum.robotframework.org/t/timeout-in-keywords-and-test-cases-doesent-work-with-browser-keywords/9186/1 "2025-08-19T12:53:14Z")

</div>

Basically Browser library keywords simply dont care about the [Timeout] given in a Test Case or Keyword and will run even if it exceeds it.

I made an example here, it doesent matter what time value i give the [Timeout] the Click will always fail after 10 sec , which is the default browser timeout

```python
***Settings***
Library Browser

***Test Cases***
Timeout Test
    [Timeout] 8sec
    New Browser chromium headless=False
    New Context
    New Page https://bing.com
    #Sleep 45sec
    Click not_existing_selector

```

Here is the log:  
Despite the Test Case Timeout is 8 sec, Click runs for 10sec and failed after:

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

But if i use a built in keyword (eg. Sleep) it works as expected and wont run over the given [Timeout]  
Same with Keyword [Timeout]

Am I missing something? Or [Timeout] just simply doesent work with Browser library Keywords?

---

<div class="post-metadata">

**Author:** ![falcon030](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/falcon030/32/3420_2.png) [@falcon030](https://forum.robotframework.org/u/falcon030)\
**Post date:** [20 August 2025 13:27 UTC](https://forum.robotframework.org/t/timeout-in-keywords-and-test-cases-doesent-work-with-browser-keywords/9186/2 "2025-08-20T13:27:37Z")

</div>

@aaltat I’m I right to believe that it doesn’t work because Browser Library has it’s own time-out mechanism?

---

<div class="post-metadata">

**Author:** ![aaltat](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/aaltat/32/15_2.png) [@aaltat](https://forum.robotframework.org/u/aaltat)\
**Post date:** [20 August 2025 19:07 UTC](https://forum.robotframework.org/t/timeout-in-keywords-and-test-cases-doesent-work-with-browser-keywords/9186/3 "2025-08-20T19:07:50Z")

</div>

Hi

Yes, you are correct, Browser library and all libraries that I can recall don’t use test timeout. Libraries generally have their own timeouts definitions.

-Tatu
