Files
docker-selenium/NodeOpera/wrap_opera_binary
Enrique Hernández BelloandDiego Molina 236519365a Support for Selenium nodes with Opera browser (#995)
* Adds files to build Opera images for Selenium

* Enable tests for Opera images

* Update the README.md to describe Opera images

Co-authored-by: Diego Molina <[email protected]>
2020-03-02 15:36:02 +01:00

14 lines
292 B
Bash
Executable File

#!/bin/bash
WRAPPER_PATH=$(readlink -f /usr/lib/*-linux-gnu/opera/opera)
BASE_PATH="$WRAPPER_PATH-base"
mv "$WRAPPER_PATH" "$BASE_PATH"
cat > "$WRAPPER_PATH" <<_EOF
#!/bin/bash
# Note: exec -a below is a bashism.
exec -a "\$0" "$BASE_PATH" --no-sandbox "\$@"
_EOF
chmod +x "$WRAPPER_PATH"