Consider the below code snippet:

@Test

public void changeText_sameActivity() {

// Type text and then press the button.

onView(withId(R.id.editTextUserInput))

.perform(typeText(stringToBetyped), closeSoftKeyboard());

onView(withId(R.id.changeTextBt)).perform(click());

// Check that the text was changed.

onView(withId(R.id.textToBeChanged))

.check(matches(withText(stringToBetyped)));

In this code what is onView() method going to return?

ViewInteraction object

RecyclerView layout

DateInteraction object

ViewAction object

Verified Answer
Correct Option - a

To get all Infosys Certified Espresso Tester Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram