# Function Test failing to create Widget 

**URL:** <https://forums.unrealengine.com/t/function-test-failing-to-create-widget/2463463>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [April 18, 2025, 5:49pm UTC](https://forums.unrealengine.com/t/function-test-failing-to-create-widget/2463463 "2025-04-18T17:49:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JPalmerW](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JPalmerW](https://forums.unrealengine.com/u/JPalmerW)\
**Post date:** [April 18, 2025, 5:49pm UTC](https://forums.unrealengine.com/t/function-test-failing-to-create-widget/2463463/1 "2025-04-18T17:49:41Z")

</div>

Failure to CreateWidget inside of a Functional Test

I have a WebView within a Widget.  
It loads up a URL and gets redirected and then grabs the result of the redirect.  
I wrote a functional test to do something dependent on that redirect.

However, the CreateWidget call always returns a null object.  
I checked the GetPlayerController(0) return, which is valid.

I made a simpler test that just creates a generic widget and that fails as well when placed within a functional test.

Is there some sort of limitation here I’m unaware of?

The thought I am arriving at is that the automation is structured to behave like a Dedicated Server, and is without a display and all UX related operations are no-ops.  
When I launch the testing, it does create a client, but I’m wondering if the client isn’t where the functional test code is being executed.
