jarmake
(Jari Mäkeläinen)
11 March 2024 14:33
1
Is there a way to slow down Browser Library execution in general like with Set Selenium Speed? I often have to showcase what my tests do in the UI over Teams meetings and Browser Library just goes way too fast for people to see. I am not keen on adding implicit sleeps to slow it down as it makes no sense.
rasjani
(not available)
11 March 2024 14:54
2
downloadsPath: Optional[str] = None,
env: Optional[Dict] = None,
executablePath: Optional[str] = None,
firefoxUserPrefs: Optional[Dict[str, Union[str, int, float, bool]]] = None,
handleSIGHUP: bool = True,
handleSIGINT: bool = True,
handleSIGTERM: bool = True,
ignoreDefaultArgs: Union[List[str], bool, None] = None,
proxy: Optional[Proxy] = None,
reuse_existing: bool = True,
slowMo: timedelta = timedelta(seconds=0),
timeout: timedelta = timedelta(seconds=30),
) -> str:
"""Create a new playwright Browser with specified options.
See `Browser, Context and Page` for more information about Browser and related concepts.
Returns a stable identifier for the created browser.
| =Arguments= | =Description= |
| ``browser`` | Opens the specified [#type-SupportedBrowsers|browser]. Defaults to chromium. |
So, passing slowMo to New Browser
probably does that - at least to a degree.
FrancisG
(Francis)
11 March 2024 15:01
3
You will probably be interested in the enable_presenter_mode
import option too.
jarmake
(Jari Mäkeläinen)
11 March 2024 15:27
4
I will try out the enable_presenter_mode, sounds promising at least.
Hi @jarmake
Could you finally try enable_presenter_mode?
Did it works? If yes, how/ where should be this Option added?
Regards
rasjani
(not available)
22 March 2024 11:04
6
Documented https://marketsquare.github.io/robotframework-browser/Browser.html
Example;
*** Settings ***
Library Browser enable_presenter_mode=True
2 Likes