Forum Discussion
Test pageContext in workbench, is it possible?
Hi,
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
Americo
It's possible the pageContext values you want are in the hosted workbench. https://yourtenant.sharepoint.com/_layouts/15/workbench.aspx . I would start there.
It's possible the pageContext values you want are in the hosted workbench. https://yourtenant.sharepoint.com/_layouts/15/workbench.aspx . I would start there.
- Americo PerezIron Contributor
Thanks,
Yes it works, my error was that I was testing in the wrong site colletion.
It happens!!
Thanks!