Skip to content

Commit fdf05f5

Browse files
author
poncoe
committed
add get value for inputfield & textarea
1 parent 1004af3 commit fdf05f5

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/main/java/com/coedotzmagic/qatools/util/GetValueHelper.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,24 @@ public static String getCurrentUrlPage() {
9696
return driver.getCurrentUrl();
9797
}
9898

99+
/**
100+
* <b>getValueInputField()</b>
101+
* used to get the value input field
102+
*
103+
* @since 1.5.1
104+
*/
105+
public static String getValueInputField(String idInputField) {
106+
return GetValueHelper.getValueElement("//input[contains(@id, '" + idInputField + "')]");
107+
}
108+
109+
/**
110+
* <b>getValueTextArea()</b>
111+
* used to get the value text area
112+
*
113+
* @since 1.5.1
114+
*/
115+
public static String getValueTextArea(String idTextArea) {
116+
return GetValueHelper.getValueElement("//textarea[contains(@id, '" + idTextArea + "')]");
117+
}
118+
99119
}

0 commit comments

Comments
 (0)