headless

Selenium-Chrome-Headless : Unable to receive message from renderer

让人想犯罪 __ 提交于 2019-12-05 05:42:36
问题 I am using Chrome-latest stable version 61.0.3163.79 Chomedriver 2.31 Selenium 3.4.0 Jenkins and docker My first run over Jenkins getting error as below: 1.732][INFO]: Done waiting for pending navigations. Status: disconnected: Unable to receive message from renderer [1.732][DEBUG]: DevTools request: http://localhost:12059/json [1.733][DEBUG]: DevTools request failed Can someone please assist me how can I solve this? 回答1: chromeOptions.addArguments(dimension); chromeOptions.addArguments("-

Docx to pdf using openoffice headless way too slow

你说的曾经没有我的故事 提交于 2019-12-05 05:38:40
I've been using PHPWord for docx files generation. And it's been working great. But now I have the need to also make available some of those files on a pdf version. After a few research I found PyODConverter which use OOo. Seemed quite a good option since I don't want to depend on third party web services. I tried it out on my machine and it works fined, so I've applied it on my server as well. It took a little longer but I've managed to get it working on there too. There is however an (bad) issue. On the server this takes about 21 seconds to get it done, while on my machine it doesn't take

headless xml generation from xsd with eclipse

柔情痞子 提交于 2019-12-05 02:55:46
问题 In recent versions of the free and open source Eclipse IDE you can generate XML documents from DTD and XSD files. Right-click on a given *.dtd or *.xsd file and select "Generate -> XML File...". You can choose which root element to generate and whether optional attributes and elements should be generated. Can i use this headless (without starting eclipse)? 回答1: You can create a headless RCP application that contains only those plugins needed to do the actual generation. These are largely WTP

Python-Selenium操作鼠标键盘Cookie

一个人想着一个人 提交于 2019-12-04 19:50:20
@ TOC 一、html 下面的html是后面代码中使用到的index.html文件,页面大致如下: <!DOCTYPE html> <html> <head> <title>鼠标键盘</title> <meta charset="utf-8"> <style type="text/css"> #acontainer{ background: red; } </style> </head> <body> <div id="container"> <form> user:<input type="text" name="user" id="user"><br /><br /> email:<input type="text" name="email" id="email"><br /><br /> <br /><br /> <button id="login">login</button> </form> </div> <div id="acontainer"> <a href="abc" class="aele">abc</a><br /> <a href="bbc" class="aele">bbc</a><br /> <a href="def" class="aele">def</a><br /> </div> </body> </html> <script type=

Python-Selemium元素定位

喜夏-厌秋 提交于 2019-12-04 19:49:46
一、html 下面的html文件是后面要使用到的form.html,页面大概如下: <!DOCTYPE html> <html> <head> <title>查找元素</title> <meta charset="utf-8"> </head> <body> <div id="container"> <form> user:<input type="text" name="user" id="user"><br /><br /> email:<input type="text" name="email" id="email"><br /><br /> male:<input type="radio" name="sex" id="male" checked="">     female:<input type="radio" name="sex" id="female"><br /><br /> 读书:<input type="checkbox" name="hobby" id="read" checked="">     电影:<input type="checkbox" name="hobby" id="movie">     运动:<input type="checkbox" name="hobby" id="sport"> <br /><br /> 语言:<select>

How to set java system properties globally on OS X?

橙三吉。 提交于 2019-12-04 19:39:27
问题 Short story I need a system level way to set the java.awt.headless property to true for all java invocations . That is, using -Djava.awt.headless=true is not an option, since java is being invoked from places I don't have access to (e.g. from within another tool written in Java/C/etc.) Long story I'm using a bunch of tools written in Java (specifically Adobe's Air ADT) that rely on AWT classes. When I run these tools on the console they work fine. But when I run them from an SSH session they

Not sure why use headless browser

最后都变了- 提交于 2019-12-04 14:36:50
问题 We just implemented CI without using headless browser, but actual browser's. So once there is new code checked in by development team.Our smoke automation code runs as background process on auto machine and send out results. It evens send across screenshots if any failures. What we did not get is, what is the advantage of using headless browser to above process. We need our smoke scripts to get this coverage. Say submitting a massive form which can run for within 5 minutes with controls like

Java headless bicubic image resize

心不动则不痛 提交于 2019-12-04 07:31:58
I need to perform java image crop and resize without an X server. I tried several methods. the first method below works, but outputs a fairly ugly resized image (probably using nearest neighbor algorithm for the resize: static BufferedImage createResizedCopy(Image originalImage, int scaledWidth, int scaledHeight, boolean preserveAlpha) { int imageType = preserveAlpha ? BufferedImage.TYPE_INT_RGB : BufferedImage.TYPE_INT_ARGB; BufferedImage scaledBI = new BufferedImage(scaledWidth, scaledHeight, imageType); Graphics2D g = scaledBI.createGraphics(); if (preserveAlpha) { g.setComposite

Target Platform for PDE Headless build does not work

随声附和 提交于 2019-12-04 06:29:38
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\productBuild\productBuild.xml -Dbuilder=c:\pde-build\scripts %* I tried to create the target eclipse platform

Using octave headless

﹥>﹥吖頭↗ 提交于 2019-12-04 05:09:53
Is there a possibility to use Octave headless. Something like this octave < "5+4" >result.txt Using octave --silent --eval 5+4 > result.txt you'll get ans = 9 in result.txt . See octave --help for details about command-line arguments. Yet, there is this infamous ans = that might be remove using sed , e.g. octave --silent --eval 'x=5+4; y=x+1; disp(y)' | sed -e 's/ans = //' >> result.txt which add the appropriate result ( 10 ) in result.txt . It should not be too hard to wrap this into a bash script. Well there is always the option of writing a script file which saves the results of your