A great free text editor for Linux is Komodo Edit.
https://www.activestate.com/komodo-ide/downloads/edit
0 Comments
brackets.io is my favorite free text editor because of its great dot operator for autocomplete.
From their support about Ubuntu: "You have to download libgcrypt11 and then you can install it from downloaded .deb using sudo dpkg -i <path of libgrypt .deb file> and then install Brackets using sudo dpkg -i <path of brackets.deb file>" https://askubuntu.com/questions/762855/how-to-install-brackets-io-from-the-command-line
Sample code use of geckodriver, required in Selenium 3.4:
System.setProperty("webdriver.gecko.driver", System.getProperty("user.home") + "\\Documents\\Selenium\\Firefox Driver\\geckodriver.exe"); //geckodriver.exe can be obtained from https://github.com/mozilla/geckodriver/releases for Selenium 3.0 to work //alternate example: //System.setProperty("webdriver.gecko.driver","C:\\Selenium\\Firefoxdriver\\geckodriver.exe"); WebDriver driver = new FirefoxDriver(); String appUrl = "https://google.com"; driver.get(appUrl); Install Java SDK, Git, and Maven
apt-get update sudo apt-get install git-core sudo apt-get install maven sudo apt-get install default-jdk Set the JAVA_HOME variable by adding this as a separate line in /etc/environment: JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64" #update as needed source Test the variable: source /etc/environment echo $JAVA_HOME Add this to etc/environment to set Maven variables: M2_HOME=/usr/share/maven M2=$M2_HOME/bin PATH=$M2:$PATH source Get the IntelliJ IDEA text editor if you don't already have it https://www.jetbrains.com/idea/download/#section=linux Get the geckodriver and chromedriver executables http://www.seleniumhq.org/download/ Specifically: gecko (firefox) chrome Place these executables in the /usr/local/bin folder (which is already in the PATH): sudo mv geckodriver /usr/local/bin/ sudo mv chromedriver /usr/local/bin/ If you haven't already, get these Firefox plugins: Selenium IDE, Selenium Implicit Wait, Firebug and Firepath. Install Chrome. To enable the saving of errors and warnings from the Chrome Console to a file (automatically), use these flags when launching Chrome: --enable-logging --log-level=0 (source) Note: The above doesn't work in conjunction with --incognito, so that would need to be removed. As an alternative: --enable-logging --v=1 but this tends to be too verbose (source) The log file will be called chrome_debug.log In Sahi, it can be found in sahi_pro\userdata\browser\chrome\profiles\sahi0 For regular Chrome, check in the user data directory. It is overwritten with every restart. In text editor such as NotePad++, you will see the errors and warnings with a timestamp like this: [1128:3860:0410/164712.950:INFO:CONSOLE(0)] Skip the first 2 numbers, it means 4-10 (April 10) 16:47:12 (4 PM) |