headless

Is it possible to run Selenium scripts without having an X server running, too?

笑着哭i 提交于 2019-11-29 19:09:56
问题 I have a python script that uses selenium RC; specifically webdriver. I would love to have the script run as a post-commit hook, ideally through IE, Safari (if possible), Chrome & Firefox. But I'm not sure what I'd need to do, since every time I run it on my local machine, a browser pops up. I've heard of "saucelabs". Is it the best solution? 回答1: Yes, you need to have X server running because Selenium requires a running browser and browsers need some kind of X server in order to run.

Run Java AWT/Swing GUI app in headless server

核能气质少年 提交于 2019-11-29 16:15:20
I have a gateway application that comes up with a login dialog and then a GUI window. I will be running this app on a co-located server without a display. I need to interact with the dialog only when logging in and perhaps to check out the main GUI occasionally. The server is Debian 5.0. The only ideas I have so far are: Tunnel an X session to my desktop for logging in but I'm not sure what will happen if the X session disconnected (ie, I reboot my desktop, etc..) Try to instantiate/launch the app from a wrapper Java application that can hopefully fill out the login dialog or login directly

Spring Boot use SystemTray Icons

无人久伴 提交于 2019-11-29 14:59:35
问题 I am setting up a Spring Boot Application and would like to have the host have access to a System Tray Icon with access to some bean Information. I currently Tried to Create a Bean for my SystemTrayIcon with the @Autowired details. However When I try to add the SystemTrayIcon I get the following Exception: Caused by: java.awt.HeadlessException at java.awt.TrayIcon.<init>(Unknown Source) at java.awt.TrayIcon.<init>(Unknown Source) at java.awt.TrayIcon.<init>(Unknown Source) at hermes

Problem in HtmlUnit API for Java (Headless Browser)?

泪湿孤枕 提交于 2019-11-29 05:18:27
I am using HtmlUnit headless browser to browse this webpage (you can see the webpage to have a better understanding of the problem). I have set the select's value to "1" by the following commands final WebClient webClient = new WebClient(BrowserVersion.INTERNET_EXPLORER_7); try { // Configuring the webClient webClient.setJavaScriptEnabled(true); webClient.setThrowExceptionOnScriptError(false); webClient.setCssEnabled(true); webClient.setUseInsecureSSL(true); webClient.setRedirectEnabled(true); webClient.setActiveXNative(true); webClient.setAppletEnabled(true); webClient

How to connect to Chromium Headless using Selenium

我们两清 提交于 2019-11-29 01:42:46
I would like to use chromium headless for automated testing using selenium. ( https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md ) I do have the headless version already running on 9222. So if i open http://10.252.100.33:9222/json/I do get [ { "description": "", "devtoolsFrontendUrl": "/devtools/inspector.html?ws=127.0.0.1:9223/devtools/page/0261be06-1271-485b-bdff-48e443de7a91", "id": "0261be06-1271-485b-bdff-48e443de7a91", "title": "The Chromium Projects", "type": "page", "url": "https://www.chromium.org/", "webSocketDebuggerUrl": "ws://127.0.0.1:9223/devtools/page

headless chrome capture screen video or animation

你离开我真会死。 提交于 2019-11-28 23:23:52
问题 I try to capture some animations from a website and stitch them together using ffmpeg. As far as I understand the docs startScreencast is the way to go. If I understand that right I can start the screencast with await Page.startScreencast({format: 'png', everyNthFrame: 1}); and listen to every incoming frame with Page.screencastFrame(image =>{ const {data, metadata} = image; console.log(metadata); }); But it's never prints out something. So I assume it's not called. I archived my goal with

how to manage log in session through headless chrome?

馋奶兔 提交于 2019-11-28 22:29:33
问题 I need to make scraper to: open headless browser, go to url, log in (there is steam oauth), fill some inputs, click 2 buttons problem is every new instance of headless browser clears my login session, and then i need to login again and again...how to save it through instances? for example using puppeteer with headless chrome or how can i open already logged in chrome headless instance? if i already log in in my main chrome window 回答1: In puppeter you have access to the session cookies through

End To End Testing on Headless Server

让人想犯罪 __ 提交于 2019-11-28 20:54:25
I am trying to set up an environment for end-to-end testing on a droplet running Ubuntu server 12.04.3 on digital ocean. What I am trying to achieve in the end is for my jenkins (installed on the one droplet) to be able to run my end-to-end tests. Now, the server is ofcourse headless and the end-to-end tests need to run through a browser (I am using protractor with the selenium standalone server with chromedriver). My question is: how do I spawn a browser on that machine ? I have installed xorg and if I do startx on the server, log out and ssh -X to it, I can manually run the end-to-end tests

Real headless browser

北慕城南 提交于 2019-11-28 17:58:19
I am in charge of testing an enterprise web application that makes heavy use of AJAX. I need to build a system that allows continuous running of tests without human intervention. Currently I am mostly interested in load testing but I want the same scripts used to generate load to be used in functional tests. Currently for loadtesting I am using the grinder . We record scripts and then process the heck out of them to handle among other things the asynchronous requests. This system works for now; however the scripts are delicate and I can't maintain them during our development cycle. I need to

Selenium and Headless Environment

这一生的挚爱 提交于 2019-11-28 17:39:15
I recently installed Python 2.7, Robot Framework and the Selenium Library (I still don't know if I succeeded though...) on a Red Hat Server to run some test on a web application. So I tried a simple test case using Robot Framework to see if Selenium Library is functional, just to Open a web page, nothing more... Selenium Server is up and running according to the result of ps, and Firefox binaries are in the PATH... Running the test case from the Robot Framework (with the pybot testcasename.tsv) I get an exception: ERROR: Problem capturing a screenshot to string: java.awt.AWTException: headless