Saturday, August 14, 2021

Palindrome Number in Python(With Code)

 What is palindrome Number?

A palindromic number is a number (such as 16461) that remains the same when its digits are reversed.

 Python Code:

 

Resource Link:   

  1. https://en.wikipedia.org/wiki/Palindromic_number
  2.  https://github.com/rizvi/python-tpoint/blob/master/Palindrome.py


Monday, April 26, 2021

Chanakya Neeti - 1

 চাণক্যের একটি কথা আছে, ‘চাঁদ নক্ষত্রসমূহের সৌন্দর্য বৃদ্ধি করে, একজন সুশাসক পৃথিবীর সৌন্দর্য বৃদ্ধি করেন, স্বামী-স্ত্রী সম্পর্ক পরিবারের সৌন্দর্য বৃদ্ধি করে।

Monday, January 25, 2021

Mouse Hover in Selenium using Java

What is Mouse Hover?

 Mouse hover is a function when we keep mouse cursor on a specific area like URL link or drop-down menu.

 Example:

  1. If I mouse hover on a URL link, it's green color can be changed to other
  2. If I mouse hover on a drop-down menu, it may open sub-menu.

Mouse Hover action in selenium JAVA

//1. Instantiate Action Class
Actions actions = new Actions(driverBrowser);

 

//2. Retrieve WebElement 'Music' to perform mouse hover
WebElement menuOption = driverBrowser.findElement(By.xpath(".//div[contains(text(),'Music')]"));

 

//3. Mouse hover menuOption 'Music'
actions.moveToElement(menuOption).perform();
System.out.println("Done Mouse hover on 'Music' from Menu");