xvfb


Focus chrome window in linux when running using xvfb


I am using the following shell script for to get the focus on a specific chrome window:
#!/bin/sh
WIDId=`xdotool search "Test page"`
xdotool windowactivate --sync $WIDId
sleep 2
xdotool windowactivate $WIDId
xdotool key --clearmodifiers ctrl+a
It works when running normally but fails when running chrome using xvfb.
In xvfb it is unable to find the windowID.
I need it to get working with xvfb.
It worked even without using windowactivate because I opened just one window that needed focus.

Related Links

xvfb-run with melt HOWTO?
Xvfb - start or attach a window manager to xvfb
Xvfb stdout closes immediately
xvfb-run unreliable when multiple instances invoked in parallel
Focus chrome window in linux when running using xvfb
Xvfb not found on your system
FreeFontPath: FPE “unix/:7100” refcount is 2, should be 1; fixing
xvfb - where do I download the xvfb standalone package?

Categories

HOME
cocoapods
events
shinyapps
clearcase
writefile
add-on
systemd
devexpress
risk-management
semantic-web
malware
turbojpeg
linker
angular-meteor
sympy
anchor
gtk
parsley.js
phpstorm-2017.1
buffer
smooks
createjs
ex
stimulsoft
corona
rpmbuild
pickle
string-formatting
spring-shell
error-logging
unity-container
sharedpreferences
multi-dimensional-scaling
uri
clipboard
oracleforms
bobo-browse.net
amazon-cloudtrail
microprocessors
unmarshalling
toad
objectmapper
plantuml
strapi
microsoft-ui-automation
spring-restcontroller
data-uri
icepdf
gcal
webalizer
django-static-precompiler
brightscript
sonicmq
embedded-v8
scala-collections
word-2007
ptvs
rcharts
wildfly-9
email-injection
yargs
mathjs
fuzzer
visual-studio-monaco
jtag
groovyfx
ajaxmin
noclassdeffounderror
persistent-object-store
jsr363
android-mapview
self
mixins
knife
vdm-sl
python-curses
html-escape-characters
microsoft-expression-web
thruway
zend-search-lucene
radius-protocol
gpu-programming
usb-flash-drive
vlab
node.js-stream
dibs
arel
semicolon
simplecov
gitx
mkannotation
netstream
kolite
regression-testing
isapi-redirect

Resources

Encrypt Message