XPath: Using Descendant
XPath Descendants:
The descendant axis is used to locate all child and sub-child elements of the current node. It selects not only the immediate children but also deeper descendants like grandchildren.
In the example below, all elements within the specified div, such as the email field, password field, and button, will be selected. You can also select specific descendant elements using an index.
This selects all input elements that are descendants (children and sub-children) of the div with the class "sign-form"
Example 1: XPath= //div[@class='col-lg-3 col-md-4 col-sm-6 sign-form']//descendant:: input