feat: detect input type password
This commit is contained in:
@@ -158,6 +158,11 @@ export const RobotEditModal = ({ isOpen, handleStart, handleClose, initialSettin
|
|||||||
const character: string = action.args[1];
|
const character: string = action.args[1];
|
||||||
const inputType: string = action.args[2] || '';
|
const inputType: string = action.args[2] || '';
|
||||||
|
|
||||||
|
// Detect `input[type="password"]`
|
||||||
|
if (!currentType && inputType.toLowerCase() === 'password') {
|
||||||
|
currentType = 'password';
|
||||||
|
}
|
||||||
|
|
||||||
// If we're dealing with a new selector, store the previous one
|
// If we're dealing with a new selector, store the previous one
|
||||||
if (currentSelector && selector !== currentSelector) {
|
if (currentSelector && selector !== currentSelector) {
|
||||||
if (!credentials[currentSelector]) {
|
if (!credentials[currentSelector]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user