Forum Discussion
- AlexKarasChampion Level 3
Hi Eddie,
Assuming that your project is either JScript- or JavaScript-based, this link might help: https://scotch.io/tutorials/how-to-encode-and-decode-strings-with-base64-in-javascript
Also https://support.smartbear.com/testcomplete/docs/app-testing/web/general/common-tasks/javascript.html might be relevant as well.
- eflyermanOccasional Contributor
I resolved it by doing something similar but different to the example on scotch.io. VERY slow.
The TC project is running pure javascript. We're not even opening a browser, just httprequests to exercise the API. There is no page object to use as in the documentation link you provided.
We may have to open up a browser just to have a page object to use to improve the speed.
Thanks,
E
- AlexKarasChampion Level 3
Hi,
> Is there anyway to access the native javascript window.btoa() function
As per w3schools (https://www.w3schools.com/jsref/obj_window.asp), window is not a native JavaScript object, but an object that "represents an open window in a browser".
Also note that as per https://www.w3schools.com/jsref/met_win_btoa.asp, btoa() is not supported in IE browser.
Related Content
- 10 months ago
- 3 months ago
Recent Discussions
- 15 hours ago
- 4 days ago