'Where can I find the Javascript file for a page returned by uri?
In my app, we have a 'sign in' button in Page 1, which will direct to the actual sign in page.
So when it is clicked, it sends a request to the server, and the server returns a uri.
Then the page is rendered. I will call this Page 2.
This page 2 has email, password input fields, and continue button.
Now, I need to figure out where the continue button is sending the POST request to, so I need access to the Javascript file of this page 2 rendered by the uri.
When I goto Sources tab however, I do not see any Javascript files.
All I see is the image below
Where can I access the file?
I have searched the server repo as well for the frontend code of the uri returned, but could not find.
There is nothing logged in the Networks tab as well, when I enter email, password, and click continue on page 2 to log in.
EDIT:
I have looked at the 'Element tab' for Page 2. This is the html code for the form (email , password, continue button). Note that I changed some attributes to camelCase.
<form
method="POST"
className="c2d54d3ec c0a5e167e"
>
<input
type="hidden"
name="state"
value="asdasdasdasdasdaIDELETEDTHIS33322E5yb0g"
/>
<div className="cfb71d41a c9514219f">
<div className="cafdaf6cc">
<div className="input-wrapper _input-wrapper">
<div
className="cdaa5633a c2ff41511 text c083604f6 c8c2b35f6"
data-action-text=""
data-alternate-action-text=""
>
<label
className="c2b602944 no-js cac31896e c7e047387"
htmlFor="username"
>
Email address
</label>
<input
className="input cab61d8c8 c4c289c94"
inputMode="email"
name="username"
id="username"
type="text"
// value=""
required={true}
autoComplete="username"
autoCapitalize="none"
spellCheck="false"
autoFocus={true}
/>
<div
className="c2b602944 js-required cac31896e c7e047387"
data-dynamic-label-for="username"
aria-hidden="true"
>
Email address
</div>
</div>
</div>
<div className="input-wrapper _input-wrapper">
<div
className="cdaa5633a c2ff41511 password cbe83985a c8c2b35f6"
data-action-text=""
data-alternate-action-text=""
>
<label
className="c2b602944 no-js cac31896e cbef58c3b"
htmlFor="password"
>
Password
</label>
<input
className="input cab61d8c8 cbcf0d22b"
name="password"
id="password"
type="password"
required={true}
autoComplete="current-password"
autoCapitalize="none"
spellCheck="false"
/>
<div
className="c2b602944 js-required cac31896e cbef58c3b"
data-dynamic-label-for="password"
aria-hidden="true"
>
Password
</div>
<div className="c31e91fde">
<button
type="submit"
name="action"
value="default"
className="c55316539 c8538d135 ca2869ec9 c448bcaa9 c9774d53b"
>
Continue
</button>
</div>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

