text(); $this->assertEquals($value, ""); // Send keys to that input $textViewsEl->value('Hello World!'); // Check that the input has new value $value = $textViewsEl->text(); $this->assertEquals(value, 'Hello World!'); } public function testShouldClickButtonOpensAlert() { // Find Button element and click on it $buttonElement = Helpers::elemBy($this, "accessibility id", "show alert"); $buttonElement->click(); // Wait for the alert to show up $alertTitleId = `Cool title`; $alertTitleElement = Helpers::elemBy($this, "accessibility id", "Cool title"); // Check the text $alertTitle = $alertTitleElement->text(); $this->assertEquals($alertTitle, "Cool title"); } } ?>