Posts

Showing posts from May, 2023

Selenium Master Coding Test - 2

Selenium Master Coding Test - 2   How would you locate the parent element of a given element using XPath axes methods in Selenium? Algorithm: Use suitable locator strategies to identify the child element. Use the parent axis to locate the parent element. Sample Website: Sample Website Reference: XPath Axes - Parent Implement a code snippet to locate the preceding sibling element of a given element using XPath axes methods in Selenium. Algorithm: Use suitable locator strategies to identify the reference element. Use the preceding-sibling axis to locate the preceding sibling element. Sample Website: Sample Website Reference: XPath Axes - Preceding-sibling How would you find the following sibling element of a given element using XPath axes methods in Selenium? Algorithm: Use suitable locator strategies to identify the reference element. Use the following-sibling axis to locate the following sibling...

SQL - Assignment Part 1

    SQL Assignment Part 1   Let's consider two tables: "Customers" and "Orders".   CustomerID | CustomerName    | City ----------------------------------- 1           | John Doe        | New York 2           | Jane Smith      | Los Angeles 3           | David Johnson   | Chicago     OrderID | CustomerID | OrderDate ------------------------------- 1        | 1           | 2023-05-01 2        | 2           | 2023-05-02 3        | 1           | 2023-05-03 4    ...

Java - Frontend - Assignment -3

  Java - Frontend - Assignment -3   Category: HTML Create an HTML form that includes text inputs for first name, last name, email address, and a password. Validate that the password contains at least one uppercase letter, one lowercase letter, one digit, and one special character. Algorithm steps: Get the value of the password input field. Use regular expressions to check if the password meets the required criteria. Display an error message if the password is not valid. Implement an HTML5 canvas element and draw a circle with a gradient fill effect. Algorithm steps: Get the canvas element using JavaScript. Get the canvas context for drawing. Set up the gradient with the desired colors and positions. Use the context methods to draw a circle and apply the gradient fill effect. Category: CSS Style a navigation menu to have a horizontal scrolling effect when the number of items excee...