Is there a way to turn off the prompt that asks to save credit card information in Chrome on my Android phone?

I am currently attempting to run some automation scripts using WD.js on the Lambda cloud server. However, I am encountering difficulties with handling a popup. Does anyone have any suggestions or solutions for this issue? Thank you in advance!

Below are my capabilities settings, but they do not seem to be working as intended.

  exports.config = {
  seleniumHost: 'hub.lambdatest.com',
  seleniumPort: 80,
  test: '../tests/demo.js',
  capabilities: [{
        build: "test demo",
        name: "work flow",
        platform: "Android",
        deviceName: "Huawei P20 Pro",
        platformVersion: "9",
        acceptSslCerts: true,
        visual: "true",
        browserName: 'chrome',
        chromeOptions: {
          prefs: {
            credentials_enable_service: false,
            'profile.password_manager_enabled': false,
            'profile.default_content_setting_values.notifications': '2'
        },
         args: ['--ignore-certificate-errors',
           '--disable-features=Translate',
           '--disable-popup-blocking',
           '--disable-notifications',
           '-incognito']
    }
    }]
}

https://i.sstatic.net/Kd38Y.png

Answer №1

Look up the term "credit" within chrome://prefs-internals/ and you'll discover the preference choices. Modify them by toggling options on/off in the interface, then refresh the page to view the values

chromeOptions: {
    prefs: {
        // disables the "save credit-card" popup and autofill
        "autofill.credit_card_enabled":false,                           
    }
}

This adjustment was made on a desktop system, but should be applicable to Android as well.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

React is unable to identify the `initialValue` attribute on a DOM element

Warning: React is not able to recognize the `initialValue` property on a DOM element. If you intended for it to show up in the DOM as a custom attribute, use `initialvalue` in lowercase instead. If it was mistakenly passed from a parent component, make sur ...

How do I make toasts completely opaque in Bootstrap 4 by adjusting the transparency settings?

Currently, I am utilizing Bootstrap 4.6 and not able to make the switch to BS 5 just yet. Is there a way for me to modify the opacity of toasts to be completely opaque? This is how my toast appears: <div id="help" style="position: fixed; ...

Currently caught up creating an Instagram bot

Here is the code snippet I have been working on: import time from selenium import webdriver from selenium.webdriver.common.keys import Keys # initiating browser session browser = webdriver.Chrome() browser.get("https://instagram.com") time.sleep ...

Creating a Show/Hide toggle feature in AngularJS using NG-Repeat

I'm facing an issue with my code where I have a list of items that should only open one item at a time when clicked. However, currently, all items are opening on click and closing on the second click. Can anyone help me identify the problem in my code ...

Guide for retrieving the maximum length of an input field using JavaScript

Is it possible to retrieve the maxlength of an input field using JavaScript? <input type="password" id="password" maxlength="20" > I attempted to do this, however it only returns undefined console.log(document.getElementById("password").maxlength) ...

angularjs: how to connect input date picker to parameters value

Having trouble with my datepicker input values not being passed as parameters in Angular and eventually to a C# parameter. Need help with setting up datepicker input and passing the values correctly. <div layout="column"> <md-content md-prim ...

Javascript encounters an unexpected inclusion of a split and empty array filter result

i'm attempting to sort through an array where the id values match those in another id array. the data variable is as follows: var data = [ { "transaksi": [ { "_id": "5acb747c9c2be225d995a8f1", ...

Ways to validate the presence of the second tr element in a table using jQuery

<table id="jobSkills"> <tr><th></th><th></th></tr> <tr><td></td></tr> //checking if this tr is present or not.? </table> I have a table with the task of determining whether the second ...

A guide to troubleshoot and resolve the 500 (Internal Server Error) encountered during an Ajax post request in Laravel

I am facing an issue in my project where I am trying to store data into a database using ajax. However, when I submit the post request, I get an error (500 Internal Server Error). I have tried searching on Google multiple times but the issue remains unreso ...

Customize Input Values by Selecting an Option with jQuery-UI Autocomplete

Hello there, I am a newcomer to java-script and could really use some help. My goal is to have the data in the country field automatically populated when a user enters data into the city field. I have an xml file: <ROWSET> <ROW> <city>&l ...

Error: Trying to access a property "draw" that is not defined and causing a TypeError

for (var i = 0; i < reduced.length; i++) { var innerdata = []; for (var j = 0; j < days.length; j++) { var rev = 0; _.each(reduced[i].data, function(timerevenueObj) { var current = new Date(parseInt(timerevenueObj[0])); ...

Error message displaying "Invalid ID attribute in HTML 5 input"

On my website, I have a page with multiple items, each containing an HTML5 input field. Whenever a user changes the value of the input, it triggers an AJAX call to the server. The server then responds with JSON data, including an array of items that have ...

Select from the drop-down menu to update the displayed image

Similar Query: How to use jQuery onchange/onfocus for selecting a box to show an image? I am seeking a way to dynamically change an image based on the selected option in a dropdown with the ID "main". I found this snippet of code that retrieves text ...

methods for generating unique document keys in mongodb

I've encountered a challenge in creating a collection with dynamic fields that have undefined names, which need to be input by the user. I attempted using variables for this but unfortunately, it's not functioning correctly. Here is the code sni ...

The $route.reload() function seems to be ineffective in Internet Explorer

I'm currently using AngularJs to develop an application. The issue I am encountering is related to data not being refreshed in IE, even after executing the $route.reload() function. Strangely enough, this problem only occurs in Internet Explorer and w ...

Interact with visible elements by automating mouse clicks with puppeteer

When attempting to click on various elements within a page, my goal is to do so only if they are visible. While achieving this in selenium with the is_displayed method was simple, I have struggled to find a similar approach in puppeteer. I attempted to imp ...

Receive altered 3-dimensional points

I am currently working with a webgl shader in three.js that is responsible for generating a model using a skeleton and a SkinnedMesh (example image can be seen below). https://i.sstatic.net/vZp8B.png The issue I'm facing is that there doesn't s ...

The Angular menu items that have dropdowns attached are not showing up on the screen at all

I have been working on developing a complex Angular menu, and while I have made progress with the overall structure, I am stuck on a particular issue. The menu needs to display different options based on the user's role, such as "admin." However, desp ...

Modifying CSS using jQuery in a PHP While Loop

I've been racking my brain trying to solve this issue, experimenting with different approaches but so far, no luck. Question: How can I dynamically change the color of a specific div within a PHP while loop using jQuery after receiving an AJAX respon ...

What is the process for removing an added message using jQuery after it has been appended by clicking the same button?

https://i.stack.imgur.com/YsmKZ.pnghttps://i.stack.imgur.com/dW2lo.pngI have searched extensively through previously asked questions without success. My goal is to remove the previous appended message when the submit button is clicked again. This functiona ...