4. </> Difference Between get() and navigate():  
</> WebElements Methods:
</> Methods of WebElement Interface:

4. </> Difference Between get() and navigate(): </> WebElements Methods: </> Methods of WebElement Interface:

In this letter we have covered the following topics

  1. Difference Between get() and navigate():
  2. WEBELEMENTS METHODS:
  3. Methods of WebElement Interface:

WEBELEMENTS METHODS:

Web Element:

Anything which is present on the webpage is called as webelement-

Ex: text box, link, image, listbox, checkbox etc,

1. These Web elements are developed by using HTML.

2. HTML stands for HyperText Markup Language.

3. The components of HTML are,

i) Tags

ii) Attributes

iii) Text

We can develop the web pages by using the notepad.

Steps to create web pages.

1. Open the notepad

2. Write the html code

3. Save the file with .html

4. Open the file with any web browsers

Ex:

	<html>

		<head>

		<title>WelCome</title>

		</head>

		<body>

			username:<input type="text">

			Password:<input type="password">

			<input type="button" value="Login">

			<a >Inbox(10)</a>

			<a  id="fp" name="forgot" class="pass">Forgot 

	Password???</a>

		</body>

	</html>        

Before performing action on any elements, we have to perform following steps.

1. Inspect the element

2. Identify/locate the element

3. Find the element

4. Perform the action

Inspect the element:

1. Fetching the source code of an element is called as inspect the element.

2. To inspect the elements, Right click on element? click on Inspect element, which will

give source code of that element

3. In some applications, for security purpose right click option will be disabled. In such cases

1. Press F12 which will open developers tool

2. Select inspect button(mouse icon available on top left corner)

3. Click on the element

Methods of WebElement Interface:

Please comment your view on this:

To join with testing group on WhatsApp click here The Testing Gurukul

要查看或添加评论,请登录

Abhishek Chauhan的更多文章

社区洞察

其他会员也浏览了