login script to auto login in antd form ?
Here is an example. // Assuming you have already identified the input fields and submit button by their IDs or classes const usernameInput = document.querySelector('#username'); const passwordInput = document.querySelector('#password'); const submitButton = document.querySelector('#submit'); // Set your login credentials const username = 'your_username'; const password = 'your_password'; // Fill in the form fields usernameInput.value = username; passwordInput.value = password; // Submit the form submitButton.click();
Обсуждают сегодня