Which is the command used for displaying the values of a variable into the output console or log?
Answer / Amzad Ali
In Selenium, you can use the `System.out.println()` method (in Java) or the `print()` function (in Python, C#, and Ruby) to display the value of a variable in the console or log. For example: `System.out.println(myVariable);` in Java or `print(myVariable)` in Python.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is testng?
Which are the operating systems supported by selenium?
What is the testng.xml file used for?
What is same origin policy? How you can avoid same origin policy?
How to type text in a textbox using selenium?
What is the use of javascriptexecutor?
Does selenium support mobile internet testing?
What are the advantages and disadvantages of using selenium as testing tool?
Explain the difference between confirming and verifying commands?
What are the open-source frameworks supported by selenium webdriver?
What is htmlunitdriver?
How to set test case priority in testng?