# Problem to open website with WebExecute?

**URL:** <https://community.wolfram.com/t/problem-to-open-website-with-webexecute/19464>\
**Category:** Questions\
**Tags:** external-interfaces, tuning-and-debugging\
**Created:** [January 21, 2022, 5:24am UTC](https://community.wolfram.com/t/problem-to-open-website-with-webexecute/19464 "2022-01-21T05:24:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcmiller](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@jcmiller](https://community.wolfram.com/u/jcmiller)\
**Post date:** [January 21, 2022, 5:24am UTC](https://community.wolfram.com/t/problem-to-open-website-with-webexecute/19464/1 "2022-01-21T05:24:41Z")

</div>

A website opens properly with SystemOpen[“url”] but fails to open properly with StartWebSession[] or WebExecute[“OpenPage”-\> “url string”]. Is there any way to use the $CurrentWebSession variable as the session variable in a WebExecute call in order to interact with the webpage opened by SystemOpen[“url”]?

---

<div class="post-metadata">

**Author:** ![rohitnamjoshi](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rohitnamjoshi](https://community.wolfram.com/u/rohitnamjoshi)\
**Post date:** [January 21, 2022, 5:47pm UTC](https://community.wolfram.com/t/problem-to-open-website-with-webexecute/19464/2 "2022-01-21T17:47:11Z")

</div>

Please provide the “url” and “url string” you are using.

> Is there any way to use the $CurrentWebSession variable as the session  
> variable in a WebExecute call in order to interact with the webpage  
> opened by SystemOpen[“URL”]?

No, there is no way to do that. `SystemOpen` launches the application configured on your system to open the type of file specified in its argument.

---

<div class="post-metadata">

**Author:** ![jcmiller](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@jcmiller](https://community.wolfram.com/u/jcmiller)\
**Post date:** [January 21, 2022, 6:08pm UTC](https://community.wolfram.com/t/problem-to-open-website-with-webexecute/19464/3 "2022-01-21T18:08:15Z")

</div>

Thanks for the help. I thought so, but hoped maybe there was a workaround. I’ll work with the SystemOpen for the time being. Thanks again.

---

<div class="post-metadata">

**Author:** ![rohitnamjoshi](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rohitnamjoshi](https://community.wolfram.com/u/rohitnamjoshi)\
**Post date:** [January 21, 2022, 7:40pm UTC](https://community.wolfram.com/t/problem-to-open-website-with-webexecute/19464/4 "2022-01-21T19:40:43Z")

</div>

Hi Jonathan,

I am interested in understanding why `WebExecute` did not work. Can you please provide the “url” and “url string” you are using?

---

<div class="post-metadata">

**Author:** ![jcmiller](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@jcmiller](https://community.wolfram.com/u/jcmiller)\
**Post date:** [January 21, 2022, 7:59pm UTC](https://community.wolfram.com/t/problem-to-open-website-with-webexecute/19464/5 "2022-01-21T19:59:24Z")

</div>

Thanks for inquiring. My password is embedded in the string so I am not going to share it. Since WebExecute appears to work with various public sites I assume private sites have gates which complicate WebExecute access. As a workaround I’ve created a Dynamic interface using SystemOpen so I am not going to use WebExecute. It’s cludgy but better than nothing for the time being. Perhaps the developers will enable some process down the road. Thanks again.
