Testing Flashcards
(5 cards)
What is negative testing
A type of testing ensures that your application can gracefully handle invalid input or unexpected user behaviour
Which of the Selenium Webdriver selectors is most powerful (has most features and can find elements by more parameters)
xpath
What is the correct way to change the content of block p
<p>This is a demonstration.</p>
document.getElementByName(“p”).innerHTML=”Hello World!”;
document.getElement(“p”).innerHTML=”Hello World!”;
document.getElementById(“demo”).innerHTML=”Hello World!”;
#demo.innerHTML=”Hello World!”;
✅document.getElementById(“demo”).innerHTML = “Hello World!”;
❌ getElementsByName, works if elements have a name attribute, not for <p> tags.
❌ No method named getElement is in the DOM API.
❌ #demo is a CSS selector, not valid in plain JavaScript.
What is the most covinient way to add an image to a bug report, chose from answers below:
attach standalone *.jpg or *png image
attach the whole webpage
attach only *html file
attach *pdf file with the inserted image
✅ Attach standalone .jpg or .png image
Page Object is
another name of PageFactory
object that represents an application (under test) page or its part
interface that is implemented by Page Factory
Java Script build in object that represents a visible element on the page
✅ object that represents an application (under test) page or its part