Download our latest MNC Answers Application at Play Store. Download Now

Nightwatch MCQ solution | TCS Fresco Play

Nightwatch MCQ solution | TCS Fresco Play

Disclaimer: The primary purpose of providing this solution is to assist and support anyone who are unable to complete these courses due to a technical issue or a lack of expertise. This website's information or data are solely for the purpose of knowledge and education.

Make an effort to understand these solutions and apply them to your Hands-On difficulties. (It is not advisable that copy and paste these solutions).

All Question of the MCQs Present Below for Ease Use Ctrl + F with the question name to find the Question. All the Best!

If you found answer for any of the questions is wrong. Please do mention in the comment section, could be useful for others. Thanks!

_________________________

Which of the following is client side scripting? 

Ans: 3,4-wrong

1.HTML 

2.JavaScript

3.NodeJs

4.CSS

5.Ruby on Rails

Which of the following is Server side scripting? 

Ans: 3,5

1.HTML 

2.JavaScript

3.NodeJs

4.CSS

5.Ruby on Rails

Node is written by-------- npm wrong javascript

Node is ___________. Server-side scripting

npm stands for ___________. Node package manager

pug is ______________ for node.js. middleman and template engine

What is command to check the node running status? DEBUG=myapp:* npm start

___________ is the command to create node express-generator. npm install express-generator

-g in the command for installation is used for __________. global installation

Nightwatch script directly reaches to Selenium server for execution. False

Nightwatch configuration should be in ___________. can be both

All the drivers are stored in _______ folder. you can store in any folder and call the path

Test folder detail will be defined in ___________. src_folder

For chrome, we need to define chrome driver location at ___________. cli_args

Default browsers for the execution is always __________. need to define the default browser

What is command to run the script? npm run nightwatch

Export in module.export is __________. an object

Module in module.export is __________. a variable

It is used for selecting all the nodes or attributes that come ___________ the current node or attributes. before

Complete path is also known as ____________. absolute xpath

Xpath stands for ________________. XML Path

Xpath syntax is ________________. //Tagname[@attributename=‘value’]

It is used for selecting all the nodes or attributes that come ___________ the current node or attributes. before

Which of these syntax is correct for relative xpath? //input[@value='text']

Which of these syntax is correct for Parent xpath? //*[@attribute='value']//parent::value

Which of these syntax is correct for following xpath? //*[@attribute='value']//following::value

Which of these syntax is correct for ancestor xpath? /*[@attribute='value']//ancestor::value

Which of these syntax is correct for contains xpath? //*[contains(@attribute,'value')]

Which of these syntax is correct for multi type xpath? [@attribute='value'][@attribute1='value1']

Which of these syntax is correct for absolute xpath?  /html/body/div/input

Self is used for ________ node. current

$= in css used for ___________. end with

^= in css used for ___________. starts with

*= in css used for ___________. Sub-string

In CSS, selector id value is called as ___________. #id

In CSS, selector class is called as ___________. .class

How to called the element is main script? @elementName

How to switch from css selector to xpath? .useXpath

How to switch from xpath to css selector? .useCss

Page object script should be defined in ___________. All these options are true.

Which of the syntax is correct for defining JSON?

{

"value1" : "text",

    "value2" : "text2"

}

How to call the json file in script? Using require

How to define inline variable? both the options are correct

To stop execution or close browser we use ________ command. .end()

To start or launch a browser, we use the ________ command..init()

___________ command captures the screenshot. .saveScreenshot()

___________ command pauses the execution till the text or value is not visible. .waitForElementVisible()

Node is written in __________. JavaScript

This in defining function stands for ____________. an object

Where is run command defined in package.json--- test_settings X function-wrong,scripts

___________ command verifies the value of the attribute. .attributeText()

Our run command is defined in package.json under __________. scripts

Which of these syntax is correct for starts-with xpath “valueX123e234”? //starts-with(@attribute, ‘value’)

___________ command verifies the specific value. .containsText()

The page object folder should be defined in ___________.Page-objects_path


______________________________

If you have any queries, please feel free to ask on the comment section.
If you want MCQs and Hands-On solutions for any courses, Please feel free to ask on the comment section too.

Please share and support our page!