Forum Discussion
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.
- eflyerman7 years agoOccasional 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
- AlexKaras7 years agoChampion 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
- 11 months ago
- 2 years ago