linx command to enable web security in ubuntu 1

linx command to enable web security in ubuntu

google-chrome/chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security

Here is what the above code is Doing:
1. We are creating a new instance of the ChromeOptions class.
2. We are adding the argument and telling Chrome to ignore-certificate-errors.
3. We are creating a new instance of Chrome by passing the options that we created.
4. We are telling the browser to get() the URL that we passed it.
5. We are telling the browser to implicitly wait for 10 seconds before throwing an exception.
6. We are telling the browser to maximize the window.
7. We are telling the browser to find the element with the ID of name and enter the text “I am Groot!”.
8. We are telling the browser to find the element with the ID of alertbtn and click it.
9. We are telling the browser to find the element with the ID of result and print the text to the console.

Similar Posts