Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make test work on all browsers (#13775)
Change-Id: I282b3d5b14a5ec09060491bd9833c76f061bbf56
- Loading branch information
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
uitest/src/com/vaadin/tests/tb3/newelements/FixedNotificationElement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,16 @@ | |||
package com.vaadin.tests.tb3.newelements; | |||
|
|||
import org.openqa.selenium.WebElement; | |||
|
|||
import com.vaadin.testbench.By; | |||
import com.vaadin.testbench.elements.NotificationElement; | |||
import com.vaadin.testbench.elements.ServerClass; | |||
|
|||
@ServerClass("com.vaadin.ui.Notification") | |||
public class FixedNotificationElement extends NotificationElement { | |||
public String getCaption() { | |||
WebElement popup = findElement(By.className("popupContent")); | |||
WebElement caption = popup.findElement(By.tagName("h1")); | |||
return caption.getText(); | |||
} | |||
} |