Closed junaidbinfarooq closed 3 years ago
Thank you for your interest!
This is probably because the source command is not being executed. Could you please try this?
demo.sh
#!/usr/bin/env bash
. ./lib/selenium.sh # <-- change `source` to `.`
main() {
....
@Rasukarusan
Nope. Doesn't work. Same error with the following, which might be the cause, at the end:
[ERROR] chromedriver is not running.
Hello,
Try
chmod +x ./demo.sh # only once
./demo.sh
or
bash demo.sh
The following error means that your sh
(/bin/sh
) does not implement the source
command.
demo.sh: 2: source: not found
From the README.md, @Rasukarusan seems to be using macOS. On macOS, sh is bash. @junaidbinfarooq, You're probably using Ubuntu or Debian, aren't you? On Ubuntu/Debian, sh is dash.
The source
is an extended command of bash, and cannot be used with dash (a pure POSIX compliant shell).
@ko1nksm thanks your reply! I'm glad for your help:raised_hands:
@ko1nksm
Thanks for the help. It helped partially. I was able to run the chrome but not as I expected. I got the following error this time:
./lib/core.sh: line 17: jq: command not found
@junaidbinfarooq
install jq
.
https://github.com/stedolan/jq
Hi, Thanks for the work. Much appreciated. I am facing some issues while running the .sh files. I get the following errors
Is there anything missing on my computer or there is something else going wrong here?