how to install Selenium WebDriver in macOS High Seirra? - macos

I have followed this instructions:
https://www.utest.com/articles/selenium-setup-on-a-mac-and-configuring-selenium-webdriver-on-mac-os
But when I tried mvn test, I get an error:
sh-3.2# mvn test
sh: mvn: command not found
sh-3.2#
Then, I tried to download this as well:
http://www.seleniumhq.org/download/
The file, selenium-server-standalone-3.8.1.jar is not installing. Does nothing when I double click it.
I also downloaded Katalon Studio, works well in iOS. It also supports windows and linux, but our boss said, use Selenium only because we already have test cases built in Selenium.
So, is there any other way to install Selenium in macOS High Seirra 10.13?

Related

Mac cmake: 'stdio.h' file not found

I have been stuck on this for a while, and I was wondering if I could get some help.
I'm currently stuck trying to run a cmake setup file and I'm constantly getting this error
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdio.h:107:15: fatal error: 'stdio.h' file not found
I've been looking online, and haven't been able to find anything recent. I've tried using the xcode-select --install already.
cmake version is currently 3.21.3.
The library I'm trying to install is https://github.com/google/draco, where I'm trying to install python functions using pybind11. I was able to install this library through cmake, whoever when I try to install the pybind11 functionality I keep getting this error. This library seemed to function properly on a coworkers linux machine, and they were running cmake 3.20.4 on ubuntu 18.04 (I don't know if this makes a difference)
Any help would be appreciated, and please let me know if there's any other information that can help the process.
It looks like something in XCode has changed after updating MacOS to 12.3. I had to reinstall XCode command line tools. I don't say it's right solution, but it works for me.
Commands for reinstalling (from https://stackoverflow.com/a/47804075):
removing the old tools ($ sudo rm -rf /Library/Developer/CommandLineTools)
install xcode command line tools again ($ xcode-select --install).

Getting Google Course Builder to deploy from Windows 7

I have extremely limited programming experience, and I am trying to get Google Course Builder up and running to make a class on a website. I have tried a lot of things, and have probably screwed things up badly by this point, but hopefully the situation is salvageable with enough help.
So far I have:
Downloaded Course Builder to my Windows 7 64 bit pc
Manually installed python 2.7.17
Installed Cygwin manually
Ran windows_start_local.bat (Which installed Cygwin again)
This showed up in a new window:
Compilation error building pycrypto-2.6.1. Please ensure a C compiler
is installed and functional on your system. On OS X, the most likely
cause of this problem is that you don't have the XCode Command Line
Tools installed. To fix this, run
$ xcode-select --install
and follow the instructions that appear, then re-run this command.
/usr/bin/bash: Exit 255.
Typed: gcloud component install app-engine-python-extras into CMD prompt and received a message that it was an invalid command
Typed: easy_install http://www.voidspace.org.uk/python/pycrypto-2.6.1/pycrypto-2.6.1.win32-py2.7.exe into CMD prompt and it said pycrypto was installed and that dependencies had been processed.
Typed: windows_start_local.bat into CMD prompt again
Got the same error:
Compilation error building pycrypto-2.6.1. Please ensure a C compiler
is installed and functional on your system. On OS X, the most likely
cause of this problem is that you don't have the XCode Command Line
Tools installed. To fix this, run
$ xcode-select --install
and follow the instructions that appear, then re-run this command.
/usr/bin/bash: Exit 255.
Typed: easy_install http://www.voidspace.org.uk/python/pycrypto-2.6.1/pycrypto-2.6.1.win32-py2.7.exe into CMD prompt again.
Typed: windows_start_local.bat into CMD prompt again
Got that same error again.
Installed Microsoft Visual C++ Compiler for Python 2.7 from https://www.microsoft.com/en-us/download/confirmation.aspx?id=44266
Came here because I have no idea what the heck I am doing.

Is it possible to install capybara-webkit with xcode command line tools only?

The last computer I installed capybara-webkit on did not require full xcode, only the command line tools. However, now when I try to install it on a new computer, I run into the following:
Try to install:
$ gem install capybara-webkit
Get error about license: Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.
Try to accept license: $ xcodebuild -license
Get error about only having command line tools: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
At this point I've just given up and started installing xcode, but it seems silly that I have to install a 4.5GB IDE just so I can accept a license agreement for the command line tools. Is there any way around that?
As you can read in capybara-webkit wiki and in QT wiki, it is not possible, as capybara-webkit requires QT.
Qt 5 sadly requires the full Xcode to be installed (> 5 GB), as opposed to previous versions of Qt which didn't. NB: We warn against using tools that try to avoid installing the full Xcode by overwriting system files in /usr/bin, since that has caused problems for other users, forcing them to reinstall OSX.
Building on OSX currently requires at least XCode version 5.1. This will remain a requirement for Qt WebEngine. Changing it would require significant changes to the Chromium code base that are going against the direction Chromium is being developed.

Getting Google App to work

I've followed all the steps here https://console.developers.google.com/start/appengine?_ga=1.82598931.449716086.1415074596 successfully up to step 5.3. When I try to start the server:
dev_appserver.py appengine-try-python-flask
I get the following output:
-bash: dev_appserver.py: command not found
I'm on a Mac running OS X 10.10. Any ideas what I'm doing wrong?
I'm running Python 2.7.6.
It seems like you didn't correctly add the dev_appserver (and other GAE tools) to the bash.
Did you restart your shell(s) to pick up the new environment changes?
If you did and the problem still persists, you can try downloading manually the GAE SDK.
After that, open the GoogleAppEngineLauncher, and just click OK on 'Make command symlinks'. This will solve your issue.
It's all easily explained in the official documentation:
Download and Install the Google App Engine SDK

How to install Selenium WebDriver on Mac OS

How to install Selenium WebDriver on Mac OS X 10.7.5 supporting Chrome, Firefox and safari ? What I have to set, where to install.
Install
If you use homebrew (which I recommend), you can install selenium using:
brew install selenium-server
Running
updated -port port_number
To run selenium, do: selenium-server -port 4444
For more options: selenium-server -help
Mac already has Python and a package manager called easy_install, so open Terminal and type
sudo easy_install selenium
To use the java -jar selenium-server-standalone-2.45.0.jar command-line tool you need to install a JDK.
You need to download and install the JDK and the standalone selenium server.
First up you need to download Selenium jar files from http://www.seleniumhq.org/download/. Then you'd need an IDE, something like IntelliJ or Eclipse. Then you'll have to map your jar files to those IDEs. Then depending on which language/framework you choose, you'll have to download the relevant library files, for example, if you're using JUnit you'll have to download Junit 4.11 jar file. Finally don't forget to download the drivers for Chrome and Safari (firefox driver comes standard with selenium). Once done, you can start coding and testing your code with the browser of your choice.
I installed Selenium web driver (for Chrome) by first:
downloading the appropriate web driver from here.
then navigated to mac's folder /usr/local/bin and pasted the downloaded web driver there.
Afterwards just ran the file there by double clicking it.
The file was installed there so that we do not have to specify the WebDriver path when instantiating the browser.
For more detailed walkthrough, you can reference from here.

Resources