Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

How do I make sure that chrome mode is enabled (other than by looking in about:config) ?

  • 5 trả lời
  • 1 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi knorretje

more options

I enabled chrome mode (devtools.chrome.enabled = true) in about:config. But it doesn't seem to on. I would like to be sure.

Is there a website where i can test that my browser has chrome mode enabled ?

Was setting devtools.chrome.enabled to true the good way to set my browser in chrome mode ?

Actually, my problem is running Selenium tests. I would like be able to use the screenshot function in a web browser (not in Selenium IDE). In a comment in selenium-api.js, it's written that the capture screenshot command would only work under Firefox in Chrome mode.

Thank you in advance for your help, Best Regards, Xavier Hardy

I enabled chrome mode (devtools.chrome.enabled = true) in about:config. But it doesn't seem to on. I would like to be sure. Is there a website where i can test that my browser has chrome mode enabled ? Was setting devtools.chrome.enabled to true the good way to set my browser in chrome mode ? Actually, my problem is running Selenium tests. I would like be able to use the screenshot function in a web browser (not in Selenium IDE). In a comment in selenium-api.js, it's written that the capture screenshot command would only work under Firefox in Chrome mode. Thank you in advance for your help, Best Regards, Xavier Hardy

Tất cả các câu trả lời (5)

more options

No, see line 905: resource:///defaults/pref/firefox.js

// Enable tools for Chrome development.
pref("devtools.chrome.enabled", false);
more options

Ok, thank you a lot. I found the preference and set it to true.

The problem is, the function i'm using is said to only work with firefox in chrome mode, but it still doesn't. How can i make sure that it's actually in chrome mode ?

more options

What do you mean with chrome mode?

The only mode that I can think of without chrome would be full screen mode.

more options

There's a comment in the function i'm trying to call:

Saves the entire contents of the current window canvas to a PNG file. Contrast this with the captureScreenshot command, which captures the contents of the OS viewport (i.e. whatever is currently being displayed on the monitor), and is implemented in the RC only. Currently this only works in Firefox when running in chrome mode, and in IE non-HTA using the EXPERIMENTAL "Snapsie" utility. The Firefox implementation is mostly borrowed from the Screengrab! Firefox extension. Please see http://www.screengrab.org and http://snapsie.sourceforge.net/ for details.

Được chỉnh sửa bởi XavierHardy vào

more options

Firefox does not have a chrome mode. Selenium RC has a *chrome mode and a *iehta mode. So I think you are referring to the Selenium running modes.

selenium_rc documentation