headless

Having problems with Apache Batik library on AWS ElasticBeanstalk Instance

南笙酒味 提交于 2020-01-14 18:45:15
问题 I am using AWS Elasti Beanstalk to power one of my apps. In this I need to export a svg document to png,jpg, pdf etc. For this I use Apache Batik library. This provides excellent output on my local dev workstation but as soon as I deploy it on the EBS I start getting errors, all related to fonts. The error stacktrace was - Caused by: java.lang.Error: Probable fatal error:No fonts found. at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1088) at sun.font.FontManager

Python - Firefox Headless

喜欢而已 提交于 2020-01-09 06:49:10
问题 I've spent the last few days messing around with Selenium, Tor, and Firefox as a combination for multiple tasks. I've managed to write a simple script in Python that takes control of Firefox through Selenium, while Firefox is connected to Tor for privacy. Now, I'm looking for a way to save resources, so I thought of running Firefox in headless mode, which I thought was a common feature but it doesn't seem to be that. I'm looking for a method to do just that. The reason for it being Firefox

No stop when running Netlogo Behaviorspace headless on Linux when using r extension

做~自己de王妃 提交于 2020-01-06 08:04:49
问题 I am running a simple netlogo behaviorspace experiment on a Linux cluster with calling R extension. Here is the sample code: extensions [r] to setup clear-all setup-patches setup-turtles reset-ticks end to setup-patches ask patches [ set pcolor green ] end to setup-turtles create-turtles number ;; uses the value of the number slider to create turtles ask turtles [ setxy random-xcor random-ycor ] end to go if ticks >= 5 [ stop ] ;; stop after 5 ticks move-turtles tick ;; increase the tick

Should I use puppeteer as part of my backend?

柔情痞子 提交于 2020-01-06 07:31:27
问题 Lets say I want to create a front-end where multiple users can send a request to a server that scrapes some links off a website, would puppeteer be able to process it concurrently/atleast fast enough or should I consider a different method? Also, is there any possible way to load a page in a headless browser instance(with js enabled) on a mobile device? How could I go about coding my own headless browser in javascript if its possible? 回答1: You can always deploy your node.js instance via PM2

Exporting headless eclipse application causes 'The product's defining plug -in could not found' error

陌路散爱 提交于 2020-01-05 05:49:07
问题 Following the tutorial in this post, I could generate the headless eclipse plugin working in eclipse IDE. By following Paul's recommendation, I tried to creating a .product file and exporting it. Beforehand, I needed to make product configuration, and I followed the instruction in this site - http://wiki.eclipse.org/FAQ_How_do_I_create_an_Eclipse_product%3F This is productConfiguration.product that was generated automatically. <?xml version="1.0" encoding="UTF-8"?> <?pde version="3.5"?>

Headless protractor not sharding tests

亡梦爱人 提交于 2020-01-04 05:21:10
问题 I am trying to run my tests headless and shard both my test suites to run them in parallel. On my local machine they run in parallel but in this headless setup they run one after the other. I am using docker images for the web driver and protractor. I am using webnicer-protractor docker image: https://hub.docker.com/r/webnicer/protractor-headless/ and using elgalu/selenium for the web driver. My conf.js that I run looks like this: exports.config = { //Headless //seleniumAddress: 'http:/

What's the best way to do headless browser testing with PHP in Linux (specifically Ubuntu)?

五迷三道 提交于 2020-01-03 05:12:13
问题 I would like to write some automated UI tests for a PHP web app, and was wondering what the best way to do it on Ubuntu would be? 回答1: http://seleniumhq.org/ http://code.google.com/p/php-webdriver-bindings/ 来源: https://stackoverflow.com/questions/7525521/whats-the-best-way-to-do-headless-browser-testing-with-php-in-linux-specifical

Running a metro app headlessly

三世轮回 提交于 2020-01-01 12:44:33
问题 I've hit a bit of a roadblock, and I'm hoping someone can help! I've written a metro application that serves as a unit test runner, and I now need to be able to call this application headlessly so that it can be used for validation in the build process. The way the metro app works is it runs a bunch of unit tests, generates an XML file that contains the test results, and displays the results to the user. Ideally, I would have a simple script that would run the metro app, execute the tests,

Target Platform for PDE Headless build does not work

孤人 提交于 2020-01-01 09:58:18
问题 I am currently trying to get my headless pde-build working but I am stuck on a point where I do not know how to continue. The problem is how to define the related target platform to compile the plugins against. I have a build.bat with the following call (all in one line!): java -jar D:\target\eclipse\plugins\org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar -application org.eclipse.ant.core.antRunner -f D:\target\eclipse\plugins\org.eclipse.pde.build_3.5.2.R35x_20100114\scripts

Open Chrome with Toggle Device Toolbar Activated

耗尽温柔 提交于 2020-01-01 07:24:16
问题 I'm working with java in Selenium, and I have to automaticed some tests, some how needs use Chrome Headless and Mobile Emulation. I know how to open chrome with "--auto-open-devtools-for-tabs" and with "mobileEmulation", but i need to open it with Toggle Device Toolbar activated. This mode, emulate the touch interactions events, replacing the click with a touch. How can i do start Chrome wiht this mode? (I´m using ChromeDriver v.2.358161) Here's my code: (...) Map<String, String>