Test pageContext in workbench, is it possible?

Regular Contributor

I have a web part that uses the pageContext to get info about the page that the user is viewing. Until now I hve been available to test the webpart in my private environment by installing it in the app cataloge and then adding it to the page that I want get the info from.
Now is time to test the app in the live environment but since it uses the pageContext it can not be tested in the workbench and I don't want to install it just for testing.

Is there a way to test this app in a similar way like using workbench?


I forgot to mention that it is a SharePoint online modern design environment


Best regards

2 Replies
best response confirmed by Americo Perez (Regular Contributor)

It's possible the pageContext values you want are in the hosted workbench. . I would start there.


Yes it works, my error was that I was testing in the wrong site colletion. 

It happens!!