Chrome DevTools API - google-chrome

I was reading up on chromedriver, trying to figure out how it controls Chrome when I came across its official documentation. According to the documentation, chromedriver uses the Runtime.evaluate command to send chrome Javascript files to execute.
My question -- cause I couldn't find any information on it online -- is, what is this Runtime.evaluate command, and is it a part of some API for chrome. If it is part of some API for chrome, how do I access the command directly from Powershell.

Related

How do I get a list of PWA's (and there associated launch urls) that are running from a chrome extension?

I have a chrome extension. The task is to get a list of PWA's (installed from Chrome) that are running on the OS and fetch the launch URL's of all those PWA's. I am not able to find any API provided by chrome extensions to achieve this. Would be really helpful if someone can guide me in the right direction

How to disable chrome pop up that says You are using an unsupported command-line flag: --ignore-certifcate-errors. Stability and security will suffer'

When opened chrome it is opening with pop up message 'You are using an unsupported command-line flag: --ignore-certifcate-errors. Stability and security will suffer'.
I am using latest chromedriver.exe to launch this.
And in robot framework using 'Open Browser chrome' keyword to launch the browser.
Is there any keyword to remove the pop up or any argument to pass which can remove that? If so please tell me how the argument can be passed to chrome in robot framework automation.
Have tried many things but no luck . Can any one help on how to disable or remove the pop up.
I used chromedriver 2.12 version (chromedriver_win32.zip) from the path http://chromedriver.storage.googleapis.com/index.html?path=2.12/
with version 2.12 pop up is not appearing.
#google-chrome , selenium2library - is the pop up really required? If not
please resolve this in latest chrome version too.

PNaCl and Google Chrome 40 on Linux: Compile process could not be created

I am trying to run the part1 application in the getting_started directory of the Google Native Client SDK, and I obtain the following message in my browser:
NativeClient: PnaclCoordinator: Compile process could not be created:
When I visit the http://localhost:5103 I see the string "Loading...", but it never changes to "Success".
What do I need to configure in Chrome in order to be able to use Native Client applications?
My setup:
OS: Ubuntu Linux 12.04 LTS
Browser: Google Chrome 40
Pepper: 39
Root access: no
Not an answer, but a question:
Can you try to get some more log messages out of chrome or the NaCl runtime?
Start chrome from the shell with the environment variable NACLVERBOSITY=4 set. That asks chrome to show what is going on in the NaCl runtime when it has created a NaCl process (for the compiler). Typical messages are something like:
Entered NaClCreateServiceSocket
...
NaClSetUpBootstrapChannel
...
Elf header
...
and some more details. If that shows up, we know that NaCl compiler process creation at least made it that far. Could you then post the log somewhere, and I can take a look?
If it doesn't show up, then the problem is earlier in chrome. In this case, running chrome w/ --enable-logging=stderr -v1 (http://www.chromium.org/for-testers/enable-logging) might give some idea of what is going on in chrome before NaCl process creation.
Same issue.
I changed the chrome://flags settings for NaCl for debugging but we are not using the NaCl debugger at all. I set it back to default and it started working. (So I guess that was the problem?)

Selenium Standalone + Chrome driver, add capabilities from command line

I want to run some test using selenium standalone server on Google Chrome but i need to pass some ChromeOptions to the chrome driver from command line
Anybody has an idea of how can i do that?
Selenium Core, which is what you are referring to, was released before Chrome existed. Support for Chrome was added later. What you are asking for was never supported, and with Selenium Core deprecated several years back, it will probably never be supported.
One possible workaround is to set the desired options in the Chrome profile.
Another options, although much more painful, is to move up to Selenium WebDriver.

Selenium WebDriver, Chrome. I am getting errors NOT IMPLEMENTED during (in the beginning and ending) running Python tests

Errors:
[6944:3028:0128/220426:ERROR:chrome_views_delegate.cc(176)] NOT IMPLEMENTED
[6944:3028:0128/220426:ERROR:desktop_root_window_host_win.cc(746)] NOT IMPLEMENT
ED
[6944:3028:0128/220430:ERROR:desktop_root_window_host_win.cc(746)] NOT IMPLEMENT
Read that the problem is in versions of Google Chrome and chromedriver.exe but I have the last version of Google Chrome - 32.0.1700.102 m and chromedriver.exe - 2.8.
Test runs fine.
That's just the console output from ChromeDriver, which does't indicate anything wrong with the tests. You can silence these outputs in order to avoid them on the console. Refer this link: Silencing Chrome driver console outputs when I run my tests.