With the help of XPath's in selenium we can easily navigate through any HTML Structure of page. Every element on the page is not always written using same type of HTML attributes, so to handle every case we have different types of XPath's. This post discusses each of them.
Types of XPath's in Selenium : A. Absolute XPath - This is the simplest type of XPath in selenium wherein define element's path starting from the root. For example, if we have to select nested div till 2 levels, so for that absolute xpath will be - html/body/div/div[2]. Here, using selenium we are fetching 2nd div inside another div.
B. Relative XPath - Here, we define only the exact path for the element. If we have multiple forms in a page, with the help of relative path we break our xpath. This break while writing xpath, we denote it using double slash. For example, //form/input. Here, using this type we are breaking the xpath so that it will just look for this section from whole body.
In the domain of artificial intelligence, generative models have emerged as a groundbreaking technology that empowers machines to produce original and creative content. Algorithms for generative AI opened up new possibilities in diverse fields like art, music, literature, and design. This article delves into the transformative potential of generative AI and its impact on fostering creativity.
GSHEET AUTOMATION - READ AND WRITE In continuation with automating any gsheet, lets now discuss how to read and write it.