Question: Create TestNG class with name NewTest under co . edurekatraining package. 2 . Create beforeMethod ( ) , afterMethod ( ) , and methodOne (
Create TestNG class with name NewTest under coedurekatraining
package.
Create beforeMethod afterMethod and methodOne class methods.
Inside beforeMethodDeclare chrome or firefox driver, launch the
Facebook application, add implicit wait, and maximize the window. Declare
@BeforeMethod annotation for this beforeMethod
In afterMethod add the close browser method. Declare @AfterMethod
annotation with this method.
Under methodOne inspect the email text box and enter the details.
Add the soft assertion for the password field with the condition until it is not
displayed and enabled.
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
