Library/Technical Support/Janova Tutorials: Getting Started

13 - Verifying Element Attributes and Labels

Tami Judge
posted this on March 02, 2011 12:51

Verifying Element Attributes and Labels

With Janova, it is possible not only to verify that an element exists, but that it exists with certain attributes and parameters.  This tutorial will explain how to inspect a text field and ensure that it is empty.

The section we intend to validate looks like this:

 

 

And our requirement is that “The CONTACT page should have a personal information section”.  This will include the text down the left side of the Text Fields and the Text Fields.  Using the developer tools we previously installed or enabled will allow us to determine both the names and options of these elements.  We will once again begin on the Dashboard.

 

 

 

1. From the Dashboard, click the Google application.

 

 

 

2. Click Features on the top menu.

 

 

 

3. Click Add a Scenario at the bottom of the screen.

 

 

 

4. Enter “The CONTACT page should have a personal information section”.

5. Click Save and Continue.

 

 

6. Select “go to a page” from the syntax drop-down.

7. Enter “Home” as the name of the page.

 

 

 

8. Click Save and Continue.

 

 

9. Select “click an element” from the syntax drop-down.

10. Change And to When in the first menu.

11. Enter “How Janova Works Link” as the name of the element.

 

 

 12. Click Save and Continue.

 

 

 

13. Select “click an element” from the syntax drop-down.

14. Change And to Then in the first menu.

15. Enter “CONTACT” as the name of the element.

 

 

16. Click Save and Continue.

 

 

17. Select “verify text on page” from the syntax drop-down.

18. Change And to Then in the first menu.

 

 

19. Change Home to CONTACT.

20. Enter “NAME” in the text field.

21. Click Save and Continue.

 

 

22. Select “verify text on page” from the syntax drop-down.

23. Enter “First” in the text field.

 

 

24. Click Save and Continue.

 

 

25. Select “verify text on page” from the syntax drop-down.

26. Enter “Last” in the text field.

 

 

27. Click Save and Continue.

 

 

28. Select “verify element attribute” from the syntax drop-down.

29. Enter “First Name Text Field” as the name of the element.

 

 

30. Select  “which is empty” from the attribute menu.

31. Click Save and Continue.

 

 

32. Select “verify element attribute” from the syntax drop-down.

33. Enter “Last Name Text Field” as the name of the element.

 

 

34. Click Save and Continue.

 

 

35. Select “verify text on page” from the syntax drop-down.

36. Enter “COMPANY” as the element name.

 

 

37. Click Save and Continue.

  

 

38. Select “verify element attribute” from the syntax drop-down.

39. Enter “Company Text Field” for the element name.

40. Change the attribute to “which is empty.”

 

 

41. Click Save and Continue.

 

 

 

42. Select “verify text on page” from the syntax drop-down.

43. Enter “EMAIL” in the text field.

 

 

44. Click Save and Continue.

 

 

45. Select “verify element attribute” from the syntax drop-down.

46. Enter “Email Text Field” for the element name.

47. Change its attribute to “which is empty.”

 

 

48. Click Save and Continue.

 

 

49. Select “verify text on page” from the syntax drop-down.

50. Enter “JOB TITLE” in the text field.

 

 

51. Click Save and Continue.

 

 

52. Select “verify element attribute” from the syntax drop-down.

53. Enter “Job Title Text Field” for the element name.

54. Change its attribute to “which is empty.”

 

 

55. Click Save and Continue.

 

 

56. Select “verify text on page” from the syntax drop-down.

57. Enter “PHONE NUMBER” in the text field.

 

 

58. Click Save and Continue.

 

 

59. Select “verify element attribute” from the syntax drop-down.

60. Enter “Phone Number Text Field” for the element name.

61. Change its attribute to “which is empty.”

 

 

62. Click Save and Close.

Continue on to the next tutorial, Page Files for Verifying Element Attributes and Labels.

 

Comments

User photo
Mike Detcheverry

you have a typo in instruction #1 to click the Google application.  you were just seeing if we were paying attention.

April 18, 2012 15:55