Question: Create TestNG class with name NewTest under co . edurekatraining package. 2 . Create beforeMethod ( ) , afterMethod ( ) , and methodOne (

Create TestNG class with name NewTest under co.edurekatraining
package.
2. Create beforeMethod(), afterMethod(), and methodOne() class methods.
3. Inside beforeMethod()(Declare chrome or firefox driver, launch the
Facebook application, add implicit wait, and maximize the window. Declare
@BeforeMethod annotation for this beforeMethod()).
4. In afterMethod(), add the close browser method. Declare @AfterMethod
annotation with this method.
5. Under methodOne(), inspect the email text box and enter the details.
6. Add the soft assertion for the password field with the condition until it is not
displayed and enabled.
7. Create the XML file for TestNG execution.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!