Wednesday, March 1, 2023

Step-by-step guide to install and set up Selenium with IntelliJ

Here's a step-by-step guide to install and set up Selenium with IntelliJ:
  1. Download and install IntelliJ IDEA Community Edition from https://www.jetbrains.com/idea/download/

  2. Open IntelliJ IDEA and create a new project.

  3. Click on File > Project Structure.

  4. In the Project Structure dialog box, click on Libraries.

  5. Click on the "+" sign to add a new library.

  6. Select "From Maven" and search for "Selenium".

  7. Select "org.seleniumhq.selenium:selenium-java" and click on "OK".

  8. Wait for IntelliJ to download and add the Selenium library to your project.

  9. Create a new Java class and name it "TestSelenium".

  10. Copy and paste the following code into the TestSelenium.java 

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class TestSelenium {
    public static void main(String[] args) {
        // Set the path to the Chrome driver
        System.setProperty("webdriver.chrome.driver", "C:/chromedriver.exe");

        // Create a new instance of the Chrome driver
        WebDriver driver = new ChromeDriver();

        // Navigate to Google
        driver.get("http://www.google.com");

        // Close the browser
        driver.quit();
    }
}

  1. Replace "C:/chromedriver.exe" with the path to the Chrome driver on your computer.

  2. Save the TestSelenium.java file.

  3. Right-click on the TestSelenium.java file and click on "Run 'TestSelenium.main()'".

  4. Wait for the Chrome browser to open and navigate to Google.

  5. Verify that the browser opens and navigates to Google successfully.

That's all! You have successfully installed and set up Selenium with IntelliJ.

Friday, September 3, 2021

Official Windows 11 pro BETA installation without TPM


This article brings you the simple steps to install Windows 11 BETA version, with dual boot mode alongside Windows 10, on any 64-bit CPU based computers without TPM. I have successfully installed Win 11 pro on my desktop having AMD A6 6400k CPU, ASUS A68HM-K motherboard, 4GB DDR3 RAM & 240GB SATA SSD.
Windows 11 is working on my desktop very smooth without even a small glitch. Existing Windows 10 is also working as is.

Summary of installation steps to have Windows 11 with Windows 10 in dual boot mode: (Please do it from Windows PC)

1. If you are not already having Win 10 USB bootable, install Windows media creation tool from below & create USB bootable.
https://www.microsoft.com/eb-gb/software-download/windows10

2. Sign-in to your Microsoft account & download windows 11 beta ISO from here - https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewiso

3. Have a dedicated partition or drive for Windows 11, preferably 30 to 50GB.

4. Ensure to have your WIN 10 USB in NTFS but not FAT32.

5. Copy install.wim from "sources" folder of Win 11 ISO to "sources" folder of WIN 10 USB. Delete install.esd from "sources" folder of WIN 10 USB.

This makes windows to consider installer as windows 10 even though you're having win 11 inside !! So, installation won't check for TPM or CPU.

Warning: Do not double click set-up & proceed within USB while on windows 10. Doing so will overwrite exiting window 10 with windows 11. But our agenda is to have both existing windows 10 & a new 11 in dual boot mode.

6. Boot USB from BIOS and select dedicated drive for Win 11 installations.    Win 11 installation process takes up to 45 mins depending on your system speed.

That's all. Enjoy exploring Windows 11 pro BETA.

Video link: https://youtu.be/klnGWG58j7M


Disclaimer:
This video is created for educational purposes only. Do not use windows 11 beta as your primary OS, as it is beta version and strong chances of security loop wholes - it is strict NO from my side to do any banking logins or financial transactions on this platform. I do not even use it to login to Gmail to avoid the risk of potential hacking.
Consider this video only to explore look & feel - features of win 11.
YouTube/me/my channel are not responsible for any damages/inconveniences to you or your system.

Wednesday, March 17, 2021

How to watch YouTube videos on car display screen



If you want to play YouTube videos, cricket matches on hotstar or your favourite Netflix shows on car infotainment system which is not android based display units - just follow below steps to screen mirror from phone to any car stereo infotainment displays.

Steps:
1. Connect male connector of RCA splitter to reverse camera IN jack on car display system. THIS IS TO SPLIT VIDEO SIGNALS.
2. 1 female of RCA splitter should be connected  to reverse camera. Another female to RCA of HDMI2AV adaptor.
3. Using type C to HDMI cable, connect USB Type C from phone to HDMI input of the HDMI2AV adaptor.
4. Audio from phone should be connected to car display unit via Bluetooth.
5. Tap on reverse camera ICON on car's screen to access screen mirroring.
That’s it ! 
Adaptor converts HDMI to AV - Audio will be via Bluetooth. Play anything from mobile to see the same on car's screen.
My LG G8X phone goes little dim when screen mirroring which saves battery. Not sure on other android phones if screen dimming works.

This tech is applicable for the phones which supports HDMI out.
Mobile compatibility check for HDMI Out:
https://www.pibox.in/2020/08/16/devices-that-support-video-over-usb-c-compatibility/

With this - you can use google maps, online videos from youtube or hotstar etc. on car screen, without Android auto.

Components used in screen mirroring:
RCA cable - https://amzn.to/2Q3TVGC
RCA Y splitter - https://amzn.to/2OqlxFw
HDMI2AV Converter - https://amzn.to/3eE4wCr
HDMI cable - https://amzn.to/3vp3sYO
TypeC to HDMI adapter - https://amzn.to/2OwhK9A
Amazon basics charger - https://amzn.to/3eF64vW


My car infotainment system -
Sony XAV-AX3000 AV Receiver with Android Auto and Apple Car Play (Black): https://amzn.to/3rOXDSt

My phone - LG G8X (Black, 128 GB)
https://tinyurl.com/3ucp42ev

Demo was on Maruti Suzuki Celerio VXi(o).
https://youtu.be/ervpEgyDe84



Warning:
Do not use reverse parking & HDMI signal together – which results in heavy flickering. So, just ensure to disconnect HDMI adaptor & its power supply before using reverse camera.

Disclaimer:
Neither YouTube nor me or my channel is responsible if any damages from the use of tech shown in this video. 
Damages can be from short circuit due electric or wiring problems in your car or faulty gadgets. 
Damages can be from driving distractions which results in traffic penalties or even road accidents.
Road safety should be first priority for everyone always.
Thanks for watching the video.

#screenmirror #carstereo #lgg8x