ContributionsMost RecentMost LikesSolutionsUncaught TypeError: Cannot set properties of undefined (setting 'value')] while generating token I have tried to create authentication token in ReadyAPI using "Auth2.0" with "Implicit Grant". I can create it manually by clicking on "Get access token" button by passing all required parameters. But when i tried to give javascript and create it automatically from "Automation script" tab, it is throwing below error. Uncaught TypeError: Cannot set properties of undefined (setting 'value')] I have also tried with below scripts to set value. 1) document.getElementsByName("loginfmt")[0].value = "123@gmail.com"; 2) document.getElementById("i0116").value = "123@gmail.com"; 3) document.getElementsByClassName("form-control ltr_override input ext-input text-box ext-text-box").value = "123@gmail.com"; 4) document.getElementById("i0116").setAttribute("placeholderText", "123@gmail.com"); The above scripts are working fine when i executed in console tab from dev tool. But not working in ReadyAPI. Can anyone help me on this issue? Java Scripts: Error: Re: Rest API GET request for authentication is failed, but response code is 200 ---Please refer below for continuation of RAW details----- "sSMSCtryPhoneData":"AF~Afghanistan~93!!!AX~Åland Islands~358!!!AL~Albania~355!!!DZ~Algeria~213!!!AS~American Samoa~1!!!AD~Andorra~376!!!AO~Angola~244!!!AI~Anguilla~1!!!AG~Antigua and Barbuda~1!!!AR~Argentina~54!!!AM~Armenia~374!!!AW~Aruba~297!!!AC~Ascension Island~247!!!AU~Australia~61!!!AT~Austria~43!!!AZ~Azerbaijan~994!!!BS~Bahamas~1!!!BH~Bahrain~973!!!BD~Bangladesh~880!!!BB~Barbados~1!!!BY~Belarus~375!!!BE~Belgium~32!!!BZ~Belize~501!!!BJ~Benin~229!!!BM~Bermuda~1!!!BT~Bhutan~975!!!BO~Bolivia~591!!!BQ~Bonaire~599!!!BA~Bosnia and Herzegovina~387!!!BW~Botswana~267!!!BR~Brazil~55!!!IO~British Indian Ocean Territory~246!!!VG~British Virgin Islands~1!!!BN~Brunei~673!!!BG~Bulgaria~359!!!BF~Burkina Faso~226!!!BI~Burundi~257!!!CV~Cabo Verde~238!!!KH~Cambodia~855!!!CM~Cameroon~237!!!CA~Canada~1!!!KY~Cayman Islands~1!!!CF~Central African Republic~236!!!TD~Chad~235!!!CL~Chile~56!!!CN~China~86!!!CX~Christmas Island~61!!!CC~Cocos (Keeling) Islands~61!!!CO~Colombia~57!!!KM~Comoros~269!!!CG~Congo~242!!!CD~Congo (DRC)~243!!!CK~Cook Islands~682!!!CR~Costa Rica~506!!!CI~Côte d\u0027Ivoire~225!!!HR~Croatia~385!!!CU~Cuba~53!!!CW~Curaçao~599!!!CY~Cyprus~357!!!CZ~Czechia~420!!!DK~Denmark~45!!!DJ~Djibouti~253!!!DM~Dominica~1!!!DO~Dominican Republic~1!!!EC~Ecuador~593!!!EG~Egypt~20!!!SV~El Salvador~503!!!GQ~Equatorial Guinea~240!!!ER~Eritrea~291!!!EE~Estonia~372!!!ET~Ethiopia~251!!!FK~Falkland Islands~500!!!FO~Faroe Islands~298!!!FJ~Fiji~679!!!FI~Finland~358!!!FR~France~33!!!GF~French Guiana~594!!!PF~French Polynesia~689!!!GA~Gabon~241!!!GM~Gambia~220!!!GE~Georgia~995!!!DE~Germany~49!!!GH~Ghana~233!!!GI~Gibraltar~350!!!GR~Greece~30!!!GL~Greenland~299!!!GD~Grenada~1!!!GP~Guadeloupe~590!!!GU~Guam~1!!!GT~Guatemala~502!!!GG~Guernsey~44!!!GN~Guinea~224!!!GW~Guinea-Bissau~245!!!GY~Guyana~592!!!HT~Haiti~509!!!HN~Honduras~504!!!HK~Hong Kong SAR~852!!!HU~Hungary~36!!!IS~Iceland~354!!!IN~India~91!!!ID~Indonesia~62!!!IR~Iran~98!!!IQ~Iraq~964!!!IE~Ireland~353!!!IM~Isle of Man~44!!!IL~Israel~972!!!IT~Italy~39!!!JM~Jamaica~1!!!JP~Japan~81!!!JE~Jersey~44!!!JO~Jordan~962!!!KZ~Kazakhstan~7!!!KE~Kenya~254!!!KI~Kiribati~686!!!KR~Korea~82!!!KW~Kuwait~965!!!KG~Kyrgyzstan~996!!!LA~Laos~856!!!LV~Latvia~371!!!LB~Lebanon~961!!!LS~Lesotho~266!!!LR~Liberia~231!!!LY~Libya~218!!!LI~Liechtenstein~423!!!LT~Lithuania~370!!!LU~Luxembourg~352!!!MO~Macao SAR~853!!!MG ---END of RAW details----- Note: Sorry for many reply but unable to paste all content in one reply due to limitation. Re: Rest API GET request for authentication is failed, but response code is 200 ---Please refer below for continuation of RAW details----- "urlGitHubFed":"https://login.live.com/oauth20_authorize.srf?scope=openid+profile+email+offline_access\u0026response_type=code\u0026client_id=51483342-085c-4d86-bf88-cf50c7252078\u0026response_mode=form_post\u0026redirect_uri=https%3a%2f%2flogin.microsoftonline.com%2fcommon%2ffederation%2foauth2msa\u0026state=rQQIARAAndQ7r9tkAMbxk572lFZwWhADMHXoUAHO8T1OpQ6-JbETx47tXOwl8uX1_ZL4mnhhZejAwlI22FqBqi4gJuZOnRED7YQqISGmSpUQh6-AHun_BR7pd_M60Sf7cB_-9BTpI_fvWi6JUIRDQa7juRCOYjBkYy4C2aRFksDCEM8GxQc3b79Cf_ji_GVffnLvk9_PtJdvH_VubJOwAX0nTx_3qKCqduX9i4t850ClU5dQ2ThQWEIuaPpWVxegBXYZVqDsZ6C6KEM_CzPIstyfer0Xvd4fvd7jKyWJURiC4ShBkDhyORTvS2P-YOpL2ND9Sl7zhKnBsMQ5-EyPCQkVKnMt4UbnH6T18iBzMSrpcWvqSWDofCVFZiCFMGygq3S25tt5JFVG5HfzdBVKnRgbOt39euWWTNdVgP6XvAg78PeVG15epNtdXlaPTr85Yz1OpJSh67ta4rHIPM2LeLnzhimjNEetLeoBW6mqQXkoMUHENjGKumB4Gy2HesHmU5vKSsjWnUYlxp6KbUJovGGnpWMsJXg3wdNNsIYjfe5lfK2N08HAFRgFbZTpNj2ucGoV2tWQS2iQoJHoohMm2beraIbwOCaNGU2G2kYOhCjw4VHNZLTAyEfLc-fHoScuR_Mm5UeDpV9zl3-iBN5xcK76OQahoJSlKR3ERIhEQ41X6UOu1GB6IGy2jYINWRdpzYBjRhxIe6mNTEo3Km4gzXHYUHTMxObrle_ANVR3G0qcMim18ZEBuaB8ZksTRURLUFVjBz6huXEVu9s26ZxaHvKRgkktq1gF3hpKVvjekPFYzVklMw3iYLBUG9_fORJ-INBFxFpTedvRogQTII8BvXAnIy3fskpyrNlyteSN42CVgNw6yKlUUM7K7hJnxlubAqWl_ehYKTbdonaEwAE1WQhjmeF2E1kcFyBbRJEuLUNzsBe8nO5qbiAyBeC9FCbWviaY2ynnl3NYUzJKR2REg2NI40CkUro58RqoNUgUyCgBq_RSJWYdAk82it9UMayFGGeQgTXxbN_S19t5cGg7LmB3OYcoG8GZrIdCLWPy3GJYR8dgfWmmAbuYFFQbKRSayD7ojkE2tRdGaQ7DauTObA9zub2gtGM7xYho0dp4IIZrG7HUbbgXifWCioKh79cRUm5DYFSGOwr0RJ1PWe-wj_T8SCS06chHgQuWxwGfk0VpdxA2zJWW2XM-R42nwWGkmuoS0xV_PCsVYPtSV-wJKwg3ZRr70cKk8UV1HJF5gKAG4wcp5MXFDH52ehex3QFJ2QOIIt1LPSxAQZTjohCMUY5tD1yEJJznp-f5DmShe2dX5F6YgBdXe6-v3nzn2u2zj07unNz78M3V3rfXLon5Jy6c_XcfMw_B-ff6b1_3nl-7mKIXXia5U9FLFqSI85ygYpY-uGjQoyjvKD7PGjTgwEEo_QfkfeSrs7PnZ-8L3HbO65pOzzla5dAt_NdZ78vrJz_f-N9KPX2398t7J2_OX__45NWzh2_-nLy-9bk_5Vsw9qphphmZia61zxS-5JlYohsBNoSmWDBifMHW6dx58PT2yb81\u0026estsfed=1\u0026uaid=7fae32e2e10e4f2eab281ae00653e1fb\u0026fci=ad6185c8-dcfd-4230-b3d1-b6a66ea31fbe\u0026idp_hint=github.com","arrExternalTrustedRealmFederatedIdps":[],"fShowSignInWithGitHubOnlyOnCredPicker":true,"fEnableShowResendCode":true,"iShowResendCodeDelay":90000, ---Please refer the next reply for continuation of this RAW details----- Re: Rest API GET request for authentication is failed, but response code is 200 ---Please refer below for continuation of RAW details----- <meta name="PageID" content="ConvergedSignIn" /> <meta name="SiteID" content="" /> <meta name="ReqLC" content="1033" /> <meta name="LocLC" content="en-US" /> <meta name="referrer" content="origin" /> <meta name="format-detection" content="telephone=no" /> <noscript> <meta http-equiv="Refresh" content="0; URL=https://login.microsoftonline.com/jsdisabled" /> </noscript> <meta name="robots" content="none" /> <script type="text/javascript">//<![CDATA[ $Config={"fShowPersistentCookiesWarning":false,"urlMsaSignUp":"https://login.live.com/oauth20_authorize.srf?scope=openid+profile+email+offline_access\u0026response_type=code\u0026client_id=51483342-085c-4d86-bf88-cf50c7252078\u0026response_mode=form_post\u0026redirect_uri=https%3a%2f%2flogin.microsoftonline.com%2fcommon%2ffederation%2foauth2msa\u0026state=rQQIARAAndQ7r9tkAMbxk572lFZwWhADMHXoUAHO8T1OpQ6-JbETx47tXOwl8uX1_ZL4mnhhZejAwlI22FqBqi4gJuZOnRED7YQqISGmSpUQh6-AHun_BR7pd_M60Sf7cB_-9BTpI_fvWi6JUIRDQa7juRCOYjBkYy4C2aRFksDCEM8GxQc3b79Cf_ji_GVffnLvk9_PtJdvH_VubJOwAX0nTx_3qKCqduX9i4t850ClU5dQ2ThQWEIuaPpWVxegBXYZVqDsZ6C6KEM_CzPIstyfer0Xvd4fvd7jKyWJURiC4ShBkDhyORTvS2P-YOpL2ND9Sl7zhKnBsMQ5-EyPCQkVKnMt4UbnH6T18iBzMSrpcWvqSWDofCVFZiCFMGygq3S25tt5JFVG5HfzdBVKnRgbOt39euWWTNdVgP6XvAg78PeVG15epNtdXlaPTr85Yz1OpJSh67ta4rHIPM2LeLnzhimjNEetLeoBW6mqQXkoMUHENjGKumB4Gy2HesHmU5vKSsjWnUYlxp6KbUJovGGnpWMsJXg3wdNNsIYjfe5lfK2N08HAFRgFbZTpNj2ucGoV2tWQS2iQoJHoohMm2beraIbwOCaNGU2G2kYOhCjw4VHNZLTAyEfLc-fHoScuR_Mm5UeDpV9zl3-iBN5xcK76OQahoJSlKR3ERIhEQ41X6UOu1GB6IGy2jYINWRdpzYBjRhxIe6mNTEo3Km4gzXHYUHTMxObrle_ANVR3G0qcMim18ZEBuaB8ZksTRURLUFVjBz6huXEVu9s26ZxaHvKRgkktq1gF3hpKVvjekPFYzVklMw3iYLBUG9_fORJ-INBFxFpTedvRogQTII8BvXAnIy3fskpyrNlyteSN42CVgNw6yKlUUM7K7hJnxlubAqWl_ehYKTbdonaEwAE1WQhjmeF2E1kcFyBbRJEuLUNzsBe8nO5qbiAyBeC9FCbWviaY2ynnl3NYUzJKR2REg2NI40CkUro58RqoNUgUyCgBq_RSJWYdAk82it9UMayFGGeQgTXxbN_S19t5cGg7LmB3OYcoG8GZrIdCLWPy3GJYR8dgfWmmAbuYFFQbKRSayD7ojkE2tRdGaQ7DauTObA9zub2gtGM7xYho0dp4IIZrG7HUbbgXifWCioKh79cRUm5DYFSGOwr0RJ1PWe-wj_T8SCS06chHgQuWxwGfk0VpdxA2zJWW2XM-R42nwWGkmuoS0xV_PCsVYPtSV-wJKwg3ZRr70cKk8UV1HJF5gKAG4wcp5MXFDH52ehex3QFJ2QOIIt1LPSxAQZTjohCMUY5tD1yEJJznp-f5DmShe2dX5F6YgBdXe6-v3nzn2u2zj07unNz78M3V3rfXLon5Jy6c_XcfMw_B-ff6b1_3nl-7mKIXXia5U9FLFqSI85ygYpY-uGjQoyjvKD7PGjTgwEEo_QfkfeSrs7PnZ-8L3HbO65pOzzla5dAt_NdZ78vrJz_f-N9KPX2398t7J2_OX__45NWzh2_-nLy-9bk_5Vsw9qphphmZia61zxS-5JlYohsBNoSmWDBifMHW6dx58PT2yb81\u0026estsfed=1\u0026uaid=7fae32e2e10e4f2eab281ae00653e1fb\u0026signup=1\u0026lw=1\u0026fl=easi2\u0026fci=ad6185c8-dcfd-4230-b3d1-b6a66ea31fbe","urlMsaLogout":"https://login.live.com/logout.srf?iframed_by=https%3a%2f%2flogin.microsoftonline.com","urlOtherIdpForget":"https://login.live.com/forgetme.srf?iframed_by=https%3a%2f%2flogin.microsoftonline.com","showCantAccessAccountLink":true, ---Please refer the next reply for continuation of this RAW details----- Re: Rest API GET request for authentication is failed, but response code is 200 ---Please refer below for continuation of RAW details----- <!-- Copyright (C) Microsoft Corporation. All rights reserved. --> <!DOCTYPE html> <html dir="ltr" class="" lang="en"> <head> <title>Sign in to your account</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=yes"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Expires" content="-1"> <link rel="preconnect" href="https://aadcdn.msftauth.net" crossorigin> <meta http-equiv="x-dns-prefetch-control" content="on"> <link rel="dns-prefetch" href="//aadcdn.msftauth.net"> <link rel="dns-prefetch" href="//aadcdn.msauth.net"> ---Please refer the next reply for continuation of this RAW details----- Re: Rest API GET request for authentication is failed, but response code is 200 richie Thanks for your reply. I have tried to send GET request to microsoftonline to authenticate the credential. Please find the below RAW details: HTTP/1.1 200 OK Cache-Control: no-store, no-cache Pragma: no-cache Content-Type: text/html; charset=utf-8 Expires: -1 Vary: Accept-Encoding Strict-Transport-Security: max-age=31536000; includeSubDomains X-Content-Type-Options: nosniff X-Frame-Options: DENY Link: <https://aadcdn.msftauth.net>; rel=preconnect; crossorigin Link: <https://aadcdn.msftauth.net>; rel=dns-prefetch Link: <https://aadcdn.msauth.net>; rel=dns-prefetch X-DNS-Prefetch-Control: on P3P: CP="DSP CUR OTPi IND OTRi ONL FIN" x-ms-request-id: 63726bfe-a371-4219-8c65-0ead54dc9501 x-ms-ests-server: 2.1.16693.3 - EUS ProdSlices x-ms-clitelem: 1,0,0,, X-XSS-Protection: 0 Set-Cookie: buid=0.AXUAt2jXG92G6EqM0gOMu30WXMiFYa393DBCs9G2pm6jH751AAA.AQABAAEAAAAmoFfGtYxvRrNriQdPKIZ-moXNYaAOlTFG8ed7h9KgP0sYYVLBJmvCZaYOBn94JYEX9FjBlFSBSCLyM700cjG45K99It6ssKog0ECvDd-c74lh_oxeB57jin7pPq8CHhwgAA; expires=Fri, 08-Dec-2023 14:01:15 GMT; path=/; secure; HttpOnly; SameSite=None Set-Cookie: esctx=PAQABAAEAAAAmoFfGtYxvRrNriQdPKIZ-acNMdwlCE1CLOU-KvA3aS8p6xnOzblRXslVRHdIHOs99cVvy4gAPfP5hhe5IO6INnJYS-9JXPcxjSFkluhVElgCG4W2zyhwiCuWIk-6SRlzXGJW1onrH1y2uqDnaZr7UNmJGXUsLVkuNayGknKBlNzDkKbHp2aFxBr6QZ_ukU8sgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None Set-Cookie: esctx-htzCgaDaLBo=AQABAAEAAAAmoFfGtYxvRrNriQdPKIZ-vZzA3-SNr_Xd-DGvcOw691RoNN_BRcLoXncmmNsHqhI8cOTn2jGhIkWF3Hnhhvi9pOr7uHbJ-8nxGfB2Hyq97Dl5rY29m4ZuvnZfglLe9eWrMY9_3I1C1qmGO9oIh7-tUBKJYkiJiALq37dzFQEPfSAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None Set-Cookie: fpc=Aq1QkNDzXvFHhW3FKHm4hT19fksrAQAAAKuL3dwOAAAA; expires=Fri, 08-Dec-2023 14:01:15 GMT; path=/; secure; HttpOnly; SameSite=None Set-Cookie: x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly Set-Cookie: stsservicecookie=estsfd; path=/; secure; samesite=none; httponly Date: Wed, 08 Nov 2023 14:01:14 GMT ---Please refer the next reply for continuation of this RAW details----- Rest API GET request for authentication is failed, but response code is 200 Hi, When I run the Rest API call from ReadyAPI it gives 200- ok. But response in XML does not show- instead it shows up some logs also am getting error in HTML Tab. If I run the same http request via chrome it works fine. I set the authentication method as Auth2.0 in ReadyAPI. HTML response: Your browser is currently set to block cookies. You need to allow cookies to use this service. Cookies are small text files stored on your computer that tell us when you're signed in. To learn how to allow cookies, check the online help in your web browser. When i saved my XML response as html and tried to open, i got the below screen.