001: /* JWebUnitTestStep.java
002: *
003: * DDSteps - Data Driven JUnit Test Steps
004: * Copyright (C) 2005 Jayway AB
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License version 2.1 as published by the Free Software Foundation.
009: *
010: * This library is distributed in the hope that it will be useful,
011: * but WITHOUT ANY WARRANTY; without even the implied warranty of
012: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
013: * Lesser General Public License for more details.
014: *
015: * You should have received a copy of the GNU Lesser General Public
016: * License along with this library; if not, visit
017: * http://www.opensource.org/licenses/lgpl-license.php
018: */
019: package org.ddsteps.step.web;
020:
021: import junit.framework.Assert;
022: import net.sourceforge.jwebunit.ExpectedTable;
023:
024: import org.apache.commons.lang.Validate;
025: import org.ddsteps.step.TestStep;
026: import org.ddsteps.web.WebBrowser;
027: import org.springframework.beans.factory.InitializingBean;
028:
029: /**
030: * Base class to building toolkit agnostic web browser test steps.
031: * <p>
032: * If you do not need specific access to the underlying API (e.g. JWebUnit) you
033: * are better of with this base class, since you will ba able to use other API:s
034: * in the future. Also, programming to interfaces is good for your karma...
035: *
036: * @author Adam Skogman
037: * @version $Id$
038: */
039: public abstract class WebBrowserTestStep extends Assert implements
040: TestStep, InitializingBean {
041:
042: /**
043: * Delegate
044: */
045: protected WebBrowser webBrowser;
046:
047: /**
048: * Use setter {@link #setWebBrowser(WebBrowser)} to inject dependency.
049: */
050: public WebBrowserTestStep() {
051: }
052:
053: /**
054: * Dependency injection constructor.
055: *
056: * @param webBrowser
057: * The webbrowser to use.
058: */
059: public WebBrowserTestStep(WebBrowser webBrowser) {
060: Validate.notNull(webBrowser,
061: "Argument webBrowser must not be null.");
062: this .webBrowser = webBrowser;
063: }
064:
065: /**
066: * @return the webBrowser
067: */
068: public WebBrowser getWebBrowser() {
069: return webBrowser;
070: }
071:
072: /**
073: * @param webBrowser
074: * the webBrowser to set
075: */
076: public void setWebBrowser(WebBrowser webBrowser) {
077: this .webBrowser = webBrowser;
078: }
079:
080: /**
081: * Checks that a web browser has been injected.
082: *
083: * @see org.springframework.beans.factory.InitializingBean#afterPropertiesSet()
084: */
085: public void afterPropertiesSet() throws Exception {
086: if (webBrowser == null) {
087: throw new IllegalStateException(
088: "Dependency 'webBrowser' must be set, is null.");
089: }
090: }
091:
092: // ///CLOVER:OFF
093:
094: /**
095: * @see org.ddsteps.web.WebBrowser#assertButtonDisabled(java.lang.String)
096: */
097: public void assertButtonDisabled(String buttonId) {
098: webBrowser.assertButtonDisabled(buttonId);
099: }
100:
101: /**
102: * @see org.ddsteps.web.WebBrowser#assertButtonEnabled(java.lang.String)
103: */
104: public void assertButtonEnabled(String buttonId) {
105: webBrowser.assertButtonEnabled(buttonId);
106: }
107:
108: /**
109: * @see org.ddsteps.web.WebBrowser#assertButtonNotPresent(java.lang.String)
110: */
111: public void assertButtonNotPresent(String buttonId) {
112: webBrowser.assertButtonNotPresent(buttonId);
113: }
114:
115: /**
116: * @see org.ddsteps.web.WebBrowser#assertButtonPresent(java.lang.String)
117: */
118: public void assertButtonPresent(String buttonId) {
119: webBrowser.assertButtonPresent(buttonId);
120: }
121:
122: /**
123: * @see org.ddsteps.web.WebBrowser#assertCheckboxNotSelected(java.lang.String)
124: */
125: public void assertCheckboxNotSelected(String checkBoxName) {
126: webBrowser.assertCheckboxNotSelected(checkBoxName);
127: }
128:
129: /**
130: * @see org.ddsteps.web.WebBrowser#assertCheckboxSelected(java.lang.String)
131: */
132: public void assertCheckboxSelected(String checkBoxName) {
133: webBrowser.assertCheckboxSelected(checkBoxName);
134: }
135:
136: /**
137: * @see org.ddsteps.web.WebBrowser#assertCookiePresent(java.lang.String)
138: */
139: public void assertCookiePresent(String cookieName) {
140: webBrowser.assertCookiePresent(cookieName);
141: }
142:
143: /**
144: * @see org.ddsteps.web.WebBrowser#assertCookieValueEquals(java.lang.String,
145: * java.lang.String)
146: */
147: public void assertCookieValueEquals(String cookieName,
148: String expectedValue) {
149: webBrowser.assertCookieValueEquals(cookieName, expectedValue);
150: }
151:
152: /**
153: * @see org.ddsteps.web.WebBrowser#assertElementNotPresent(java.lang.String)
154: */
155: public void assertElementNotPresent(String anID) {
156: webBrowser.assertElementNotPresent(anID);
157: }
158:
159: /**
160: * @see org.ddsteps.web.WebBrowser#assertElementPresent(java.lang.String)
161: */
162: public void assertElementPresent(String anID) {
163: webBrowser.assertElementPresent(anID);
164: }
165:
166: /**
167: * @see org.ddsteps.web.WebBrowser#assertFormElementEmpty(java.lang.String)
168: */
169: public void assertFormElementEmpty(String formElementName) {
170: webBrowser.assertFormElementEmpty(formElementName);
171: }
172:
173: /**
174: * @see org.ddsteps.web.WebBrowser#assertFormElementEquals(java.lang.String,
175: * java.lang.String)
176: */
177: public void assertFormElementEquals(String formElementName,
178: String expectedValue) {
179: webBrowser.assertFormElementEquals(formElementName,
180: expectedValue);
181: }
182:
183: /**
184: * @see org.ddsteps.web.WebBrowser#assertFormElementNotPresent(java.lang.String)
185: */
186: public void assertFormElementNotPresent(String formElementName) {
187: webBrowser.assertFormElementNotPresent(formElementName);
188: }
189:
190: /**
191: * @see org.ddsteps.web.WebBrowser#assertFormElementNotPresentOrDisabled(java.lang.String)
192: */
193: public void assertFormElementNotPresentOrDisabled(
194: String formElementName) {
195: webBrowser
196: .assertFormElementNotPresentOrDisabled(formElementName);
197: }
198:
199: /**
200: * @see org.ddsteps.web.WebBrowser#assertFormElementNotPresentWithLabel(java.lang.String)
201: */
202: public void assertFormElementNotPresentWithLabel(
203: String formElementLabel) {
204: webBrowser
205: .assertFormElementNotPresentWithLabel(formElementLabel);
206: }
207:
208: /**
209: * @see org.ddsteps.web.WebBrowser#assertFormElementPresent(java.lang.String)
210: */
211: public void assertFormElementPresent(String formElementName) {
212: webBrowser.assertFormElementPresent(formElementName);
213: }
214:
215: /**
216: * @see org.ddsteps.web.WebBrowser#assertFormElementPresentAndEnabled(java.lang.String)
217: */
218: public void assertFormElementPresentAndEnabled(
219: String formElementName) {
220: webBrowser.assertFormElementPresentAndEnabled(formElementName);
221: }
222:
223: /**
224: * @see org.ddsteps.web.WebBrowser#assertFormElementPresentWithLabel(java.lang.String)
225: */
226: public void assertFormElementPresentWithLabel(
227: String formElementLabel) {
228: webBrowser.assertFormElementPresentWithLabel(formElementLabel);
229: }
230:
231: /**
232: * @see org.ddsteps.web.WebBrowser#assertFormNotPresent()
233: */
234: public void assertFormNotPresent() {
235: webBrowser.assertFormNotPresent();
236: }
237:
238: /**
239: * @see org.ddsteps.web.WebBrowser#assertFormNotPresent(java.lang.String)
240: */
241: public void assertFormNotPresent(String nameOrID) {
242: webBrowser.assertFormNotPresent(nameOrID);
243: }
244:
245: /**
246: * @see org.ddsteps.web.WebBrowser#assertFormPresent()
247: */
248: public void assertFormPresent() {
249: webBrowser.assertFormPresent();
250: }
251:
252: /**
253: * @see org.ddsteps.web.WebBrowser#assertFormPresent(java.lang.String)
254: */
255: public void assertFormPresent(String nameOrID) {
256: webBrowser.assertFormPresent(nameOrID);
257: }
258:
259: /**
260: * @see org.ddsteps.web.WebBrowser#assertFramePresent(java.lang.String)
261: */
262: public void assertFramePresent(String frameName) {
263: webBrowser.assertFramePresent(frameName);
264: }
265:
266: /**
267: * @see org.ddsteps.web.WebBrowser#assertKeyInTable(java.lang.String,
268: * java.lang.String)
269: */
270: public void assertKeyInTable(String tableSummaryOrId, String key) {
271: webBrowser.assertKeyInTable(tableSummaryOrId, key);
272: }
273:
274: /**
275: * @see org.ddsteps.web.WebBrowser#assertKeyNotInTable(java.lang.String,
276: * java.lang.String)
277: */
278: public void assertKeyNotInTable(String tableSummaryOrId, String key) {
279: webBrowser.assertKeyNotInTable(tableSummaryOrId, key);
280: }
281:
282: /**
283: * @see org.ddsteps.web.WebBrowser#assertKeyNotPresent(java.lang.String)
284: */
285: public void assertKeyNotPresent(String key) {
286: webBrowser.assertKeyNotPresent(key);
287: }
288:
289: /**
290: * @see org.ddsteps.web.WebBrowser#assertKeyPresent(java.lang.String)
291: */
292: public void assertKeyPresent(String key) {
293: webBrowser.assertKeyPresent(key);
294: }
295:
296: /**
297: * @see org.ddsteps.web.WebBrowser#assertKeysInTable(java.lang.String,
298: * java.lang.String[])
299: */
300: public void assertKeysInTable(String tableSummaryOrId, String[] keys) {
301: webBrowser.assertKeysInTable(tableSummaryOrId, keys);
302: }
303:
304: /**
305: * @see org.ddsteps.web.WebBrowser#assertLinkNotPresent(java.lang.String)
306: */
307: public void assertLinkNotPresent(String linkId) {
308: webBrowser.assertLinkNotPresent(linkId);
309: }
310:
311: /**
312: * @see org.ddsteps.web.WebBrowser#assertLinkNotPresentWithImage(java.lang.String)
313: */
314: public void assertLinkNotPresentWithImage(String imageFileName) {
315: webBrowser.assertLinkNotPresentWithImage(imageFileName);
316: }
317:
318: /**
319: * @see org.ddsteps.web.WebBrowser#assertLinkNotPresentWithText(java.lang.String,
320: * int)
321: */
322: public void assertLinkNotPresentWithText(String linkText, int index) {
323: webBrowser.assertLinkNotPresentWithText(linkText, index);
324: }
325:
326: /**
327: * @see org.ddsteps.web.WebBrowser#assertLinkNotPresentWithText(java.lang.String)
328: */
329: public void assertLinkNotPresentWithText(String linkText) {
330: webBrowser.assertLinkNotPresentWithText(linkText);
331: }
332:
333: /**
334: * @see org.ddsteps.web.WebBrowser#assertLinkPresent(java.lang.String)
335: */
336: public void assertLinkPresent(String linkId) {
337: webBrowser.assertLinkPresent(linkId);
338: }
339:
340: /**
341: * @see org.ddsteps.web.WebBrowser#assertLinkPresentWithImage(java.lang.String)
342: */
343: public void assertLinkPresentWithImage(String imageFileName) {
344: webBrowser.assertLinkPresentWithImage(imageFileName);
345: }
346:
347: /**
348: * @see org.ddsteps.web.WebBrowser#assertLinkPresentWithText(java.lang.String,
349: * int)
350: */
351: public void assertLinkPresentWithText(String linkText, int index) {
352: webBrowser.assertLinkPresentWithText(linkText, index);
353: }
354:
355: /**
356: * @see org.ddsteps.web.WebBrowser#assertLinkPresentWithText(java.lang.String)
357: */
358: public void assertLinkPresentWithText(String linkText) {
359: webBrowser.assertLinkPresentWithText(linkText);
360: }
361:
362: /**
363: * @see org.ddsteps.web.WebBrowser#assertOptionEquals(java.lang.String,
364: * java.lang.String)
365: */
366: public void assertOptionEquals(String selectName, String option) {
367: webBrowser.assertOptionEquals(selectName, option);
368: }
369:
370: /**
371: * @see org.ddsteps.web.WebBrowser#assertOptionIsSelectedByValue(java.lang.String,
372: * java.lang.String)
373: */
374: public void assertOptionIsSelectedByValue(String selectId,
375: String selectedValue) {
376: webBrowser.assertOptionIsSelectedByValue(selectId,
377: selectedValue);
378: }
379:
380: /**
381: * @see org.ddsteps.web.WebBrowser#assertOptionsEqual(java.lang.String,
382: * java.lang.String[])
383: */
384: public void assertOptionsEqual(String selectName,
385: String[] expectedOptions) {
386: webBrowser.assertOptionsEqual(selectName, expectedOptions);
387: }
388:
389: /**
390: * @see org.ddsteps.web.WebBrowser#assertOptionsNotEqual(java.lang.String,
391: * java.lang.String[])
392: */
393: public void assertOptionsNotEqual(String selectName,
394: String[] expectedOptions) {
395: webBrowser.assertOptionsNotEqual(selectName, expectedOptions);
396: }
397:
398: /**
399: * @see org.ddsteps.web.WebBrowser#assertOptionValuePresent(java.lang.String,
400: * java.lang.String)
401: */
402: public void assertOptionValuePresent(String selectId, String value) {
403: webBrowser.assertOptionValuePresent(selectId, value);
404: }
405:
406: /**
407: * @see org.ddsteps.web.WebBrowser#assertOptionValuesEqual(java.lang.String,
408: * java.lang.String[])
409: */
410: public void assertOptionValuesEqual(String selectName,
411: String[] expectedValues) {
412: webBrowser.assertOptionValuesEqual(selectName, expectedValues);
413: }
414:
415: /**
416: * @see org.ddsteps.web.WebBrowser#assertOptionValuesNotEqual(java.lang.String,
417: * java.lang.String[])
418: */
419: public void assertOptionValuesNotEqual(String selectName,
420: String[] optionValues) {
421: webBrowser.assertOptionValuesNotEqual(selectName, optionValues);
422: }
423:
424: /**
425: * @see org.ddsteps.web.WebBrowser#assertRadioOptionNotPresent(java.lang.String,
426: * java.lang.String)
427: */
428: public void assertRadioOptionNotPresent(String name,
429: String radioOption) {
430: webBrowser.assertRadioOptionNotPresent(name, radioOption);
431: }
432:
433: /**
434: * @see org.ddsteps.web.WebBrowser#assertRadioOptionNotSelected(java.lang.String,
435: * java.lang.String)
436: */
437: public void assertRadioOptionNotSelected(String name,
438: String radioOption) {
439: webBrowser.assertRadioOptionNotSelected(name, radioOption);
440: }
441:
442: /**
443: * @see org.ddsteps.web.WebBrowser#assertRadioOptionPresent(java.lang.String,
444: * java.lang.String)
445: */
446: public void assertRadioOptionPresent(String name, String radioOption) {
447: webBrowser.assertRadioOptionPresent(name, radioOption);
448: }
449:
450: /**
451: * @see org.ddsteps.web.WebBrowser#assertRadioOptionSelected(java.lang.String,
452: * java.lang.String)
453: */
454: public void assertRadioOptionSelected(String name,
455: String radioOption) {
456: webBrowser.assertRadioOptionSelected(name, radioOption);
457: }
458:
459: /**
460: * @see org.ddsteps.web.WebBrowser#assertSubmitButtonNotPresent(java.lang.String)
461: */
462: public void assertSubmitButtonNotPresent(String buttonName) {
463: webBrowser.assertSubmitButtonNotPresent(buttonName);
464: }
465:
466: /**
467: * @see org.ddsteps.web.WebBrowser#assertSubmitButtonPresent(java.lang.String)
468: */
469: public void assertSubmitButtonPresent(String buttonName) {
470: webBrowser.assertSubmitButtonPresent(buttonName);
471: }
472:
473: /**
474: * @see org.ddsteps.web.WebBrowser#assertSubmitButtonValue(java.lang.String,
475: * java.lang.String)
476: */
477: public void assertSubmitButtonValue(String buttonName,
478: String expectedValue) {
479: webBrowser.assertSubmitButtonValue(buttonName, expectedValue);
480: }
481:
482: /**
483: * @see org.ddsteps.web.WebBrowser#assertTableEquals(java.lang.String,
484: * net.sourceforge.jwebunit.ExpectedTable)
485: */
486: public void assertTableEquals(String tableSummaryOrId,
487: ExpectedTable expectedTable) {
488: webBrowser.assertTableEquals(tableSummaryOrId, expectedTable);
489: }
490:
491: /**
492: * @see org.ddsteps.web.WebBrowser#assertTableEquals(java.lang.String,
493: * java.lang.String[][])
494: */
495: public void assertTableEquals(String tableSummaryOrId,
496: String[][] expectedCellValues) {
497: webBrowser.assertTableEquals(tableSummaryOrId,
498: expectedCellValues);
499: }
500:
501: /**
502: * @see org.ddsteps.web.WebBrowser#assertTableNotPresent(java.lang.String)
503: */
504: public void assertTableNotPresent(String tableSummaryOrId) {
505: webBrowser.assertTableNotPresent(tableSummaryOrId);
506: }
507:
508: /**
509: * @see org.ddsteps.web.WebBrowser#assertTablePresent(java.lang.String)
510: */
511: public void assertTablePresent(String tableSummaryOrId) {
512: webBrowser.assertTablePresent(tableSummaryOrId);
513: }
514:
515: /**
516: * @see org.ddsteps.web.WebBrowser#assertTableRowsEqual(java.lang.String,
517: * int, net.sourceforge.jwebunit.ExpectedTable)
518: */
519: public void assertTableRowsEqual(String tableSummaryOrId,
520: int startRow, ExpectedTable expectedTable) {
521: webBrowser.assertTableRowsEqual(tableSummaryOrId, startRow,
522: expectedTable);
523: }
524:
525: /**
526: * @see org.ddsteps.web.WebBrowser#assertTableRowsEqual(java.lang.String,
527: * int, java.lang.String[][])
528: */
529: public void assertTableRowsEqual(String tableSummaryOrId,
530: int startRow, String[][] expectedCellValues) {
531: webBrowser.assertTableRowsEqual(tableSummaryOrId, startRow,
532: expectedCellValues);
533: }
534:
535: /**
536: * @see org.ddsteps.web.WebBrowser#assertTextInElement(java.lang.String,
537: * java.lang.String)
538: */
539: public void assertTextInElement(String elementID, String text) {
540: webBrowser.assertTextInElement(elementID, text);
541: }
542:
543: /**
544: * @see org.ddsteps.web.WebBrowser#assertTextInElement(java.lang.String,
545: * java.lang.String[])
546: */
547: public void assertTextInElement(String elementId, String[] texts) {
548: webBrowser.assertTextInElement(elementId, texts);
549: }
550:
551: /**
552: * @see org.ddsteps.web.WebBrowser#assertTextInTable(java.lang.String,
553: * java.lang.String)
554: */
555: public void assertTextInTable(String tableSummaryOrId, String text) {
556: webBrowser.assertTextInTable(tableSummaryOrId, text);
557: }
558:
559: /**
560: * @see org.ddsteps.web.WebBrowser#assertTextInTable(java.lang.String,
561: * java.lang.String[])
562: */
563: public void assertTextInTable(String tableSummaryOrId, String[] text) {
564: webBrowser.assertTextInTable(tableSummaryOrId, text);
565: }
566:
567: /**
568: * @see org.ddsteps.web.WebBrowser#assertTextNotInElement(java.lang.String,
569: * java.lang.String)
570: */
571: public void assertTextNotInElement(String elementID, String text) {
572: webBrowser.assertTextNotInElement(elementID, text);
573: }
574:
575: /**
576: * @see org.ddsteps.web.WebBrowser#assertTextNotInTable(java.lang.String,
577: * java.lang.String)
578: */
579: public void assertTextNotInTable(String tableSummaryOrId,
580: String text) {
581: webBrowser.assertTextNotInTable(tableSummaryOrId, text);
582: }
583:
584: /**
585: * @see org.ddsteps.web.WebBrowser#assertTextNotInTable(java.lang.String,
586: * java.lang.String[])
587: */
588: public void assertTextNotInTable(String tableSummaryOrId,
589: String[] text) {
590: webBrowser.assertTextNotInTable(tableSummaryOrId, text);
591: }
592:
593: /**
594: * @see org.ddsteps.web.WebBrowser#assertTextNotPresent(java.lang.String)
595: */
596: public void assertTextNotPresent(String text) {
597: webBrowser.assertTextNotPresent(text);
598: }
599:
600: /**
601: * @see org.ddsteps.web.WebBrowser#assertTextPresent(java.lang.String)
602: */
603: public void assertTextPresent(String text) {
604: webBrowser.assertTextPresent(text);
605: }
606:
607: /**
608: * @see org.ddsteps.web.WebBrowser#assertTitleEquals(java.lang.String)
609: */
610: public void assertTitleEquals(String title) {
611: webBrowser.assertTitleEquals(title);
612: }
613:
614: /**
615: * @see org.ddsteps.web.WebBrowser#assertTitleEqualsKey(java.lang.String)
616: */
617: public void assertTitleEqualsKey(String titleKey) {
618: webBrowser.assertTitleEqualsKey(titleKey);
619: }
620:
621: /**
622: * @see org.ddsteps.web.WebBrowser#assertWindowPresent(java.lang.String)
623: */
624: public void assertWindowPresent(String windowName) {
625: webBrowser.assertWindowPresent(windowName);
626: }
627:
628: /**
629: * @see org.ddsteps.web.WebBrowser#beginAt(java.lang.String)
630: */
631: public void beginAt(String relativeURL) {
632: webBrowser.beginAt(relativeURL);
633: }
634:
635: /**
636: * @see org.ddsteps.web.WebBrowser#checkCheckbox(java.lang.String,
637: * java.lang.String)
638: */
639: public void checkCheckbox(String checkBoxName, String value) {
640: webBrowser.checkCheckbox(checkBoxName, value);
641: }
642:
643: /**
644: * @see org.ddsteps.web.WebBrowser#checkCheckbox(java.lang.String)
645: */
646: public void checkCheckbox(String checkBoxName) {
647: webBrowser.checkCheckbox(checkBoxName);
648: }
649:
650: /**
651: * @see org.ddsteps.web.WebBrowser#clickButton(java.lang.String)
652: */
653: public void clickButton(String buttonId) {
654: webBrowser.clickButton(buttonId);
655: }
656:
657: /**
658: * @see org.ddsteps.web.WebBrowser#clickLink(java.lang.String)
659: */
660: public void clickLink(String linkId) {
661: webBrowser.clickLink(linkId);
662: }
663:
664: /**
665: * @see org.ddsteps.web.WebBrowser#clickLinkWithImage(java.lang.String)
666: */
667: public void clickLinkWithImage(String imageFileName) {
668: webBrowser.clickLinkWithImage(imageFileName);
669: }
670:
671: /**
672: * @see org.ddsteps.web.WebBrowser#clickLinkWithText(java.lang.String, int)
673: */
674: public void clickLinkWithText(String linkText, int index) {
675: webBrowser.clickLinkWithText(linkText, index);
676: }
677:
678: /**
679: * @see org.ddsteps.web.WebBrowser#clickLinkWithText(java.lang.String)
680: */
681: public void clickLinkWithText(String linkText) {
682: webBrowser.clickLinkWithText(linkText);
683: }
684:
685: /**
686: * @see org.ddsteps.web.WebBrowser#clickLinkWithTextAfterText(java.lang.String,
687: * java.lang.String)
688: */
689: public void clickLinkWithTextAfterText(String linkText,
690: String labelText) {
691: webBrowser.clickLinkWithTextAfterText(linkText, labelText);
692: }
693:
694: /**
695: * @see org.ddsteps.web.WebBrowser#endTrail()
696: */
697: public void endTrail() {
698: webBrowser.endTrail();
699: }
700:
701: /**
702: * @see org.ddsteps.web.WebBrowser#getDefaultOption(java.lang.String)
703: */
704: public String getDefaultOption(String selectName) {
705: return webBrowser.getDefaultOption(selectName);
706: }
707:
708: /**
709: * @see org.ddsteps.web.WebBrowser#getMessage(java.lang.String)
710: */
711: public String getMessage(String key) {
712: return webBrowser.getMessage(key);
713: }
714:
715: /**
716: * @see org.ddsteps.web.WebBrowser#getOptionValues(java.lang.String)
717: */
718: public String[] getOptionValues(String selectId) {
719: return webBrowser.getOptionValues(selectId);
720: }
721:
722: /**
723: * @see org.ddsteps.web.WebBrowser#getSelectedOptionValue(java.lang.String)
724: */
725: public String getSelectedOptionValue(String selectName) {
726: return webBrowser.getSelectedOptionValue(selectName);
727: }
728:
729: /**
730: * @see org.ddsteps.web.WebBrowser#gotoFrame(java.lang.String)
731: */
732: public void gotoFrame(String frameName) {
733: webBrowser.gotoFrame(frameName);
734: }
735:
736: /**
737: * @see org.ddsteps.web.WebBrowser#gotoPage(java.lang.String)
738: */
739: public void gotoPage(String url) {
740: webBrowser.gotoPage(url);
741: }
742:
743: /**
744: * @see org.ddsteps.web.WebBrowser#gotoRootWindow()
745: */
746: public void gotoRootWindow() {
747: webBrowser.gotoRootWindow();
748: }
749:
750: /**
751: * @see org.ddsteps.web.WebBrowser#gotoWindow(java.lang.String)
752: */
753: public void gotoWindow(String windowName) {
754: webBrowser.gotoWindow(windowName);
755: }
756:
757: /**
758: * @see org.ddsteps.web.WebBrowser#reset()
759: */
760: public void reset() {
761: webBrowser.reset();
762: }
763:
764: /**
765: * @see org.ddsteps.web.WebBrowser#selectOption(java.lang.String,
766: * java.lang.String)
767: */
768: public void selectOption(String selectName, String option) {
769: webBrowser.selectOption(selectName, option);
770: }
771:
772: /**
773: * @see org.ddsteps.web.WebBrowser#selectOptionByValue(java.lang.String,
774: * java.lang.String)
775: */
776: public void selectOptionByValue(String selectId, String value) {
777: webBrowser.selectOptionByValue(selectId, value);
778: }
779:
780: /**
781: * @see org.ddsteps.web.WebBrowser#setFormElement(java.lang.String,
782: * java.lang.String)
783: */
784: public void setFormElement(String formElementName, String value) {
785: webBrowser.setFormElement(formElementName, value);
786: }
787:
788: /**
789: * @see org.ddsteps.web.WebBrowser#setFormElement(java.lang.String,
790: * java.lang.String[])
791: */
792: public void setFormElement(String formElementName, String[] values) {
793: webBrowser.setFormElement(formElementName, values);
794: }
795:
796: /**
797: * @see org.ddsteps.web.WebBrowser#setWorkingForm(java.lang.String)
798: */
799: public void setWorkingForm(String nameOrId) {
800: webBrowser.setWorkingForm(nameOrId);
801: }
802:
803: /**
804: * @see org.ddsteps.web.WebBrowser#setWorkingFormByFieldName(java.lang.String)
805: */
806: public void setWorkingFormByFieldName(String fieldName) {
807: webBrowser.setWorkingFormByFieldName(fieldName);
808: }
809:
810: /**
811: * @see org.ddsteps.web.WebBrowser#setWorkingFormByFieldNameAndValue(java.lang.String, java.lang.String)
812: */
813: public void setWorkingFormByFieldNameAndValue(String fieldName,
814: String value) {
815: webBrowser.setWorkingFormByFieldNameAndValue(fieldName, value);
816: }
817:
818: /**
819: * @see org.ddsteps.web.WebBrowser#startTrail(java.lang.String)
820: */
821: public void startTrail(String trailName) {
822: webBrowser.startTrail(trailName);
823: }
824:
825: /**
826: * @see org.ddsteps.web.WebBrowser#submit()
827: */
828: public void submit() {
829: webBrowser.submit();
830: }
831:
832: /**
833: * @see org.ddsteps.web.WebBrowser#submit(java.lang.String)
834: */
835: public void submit(String buttonName) {
836: webBrowser.submit(buttonName);
837: }
838:
839: /**
840: * @see org.ddsteps.web.WebBrowser#uncheckCheckbox(java.lang.String,
841: * java.lang.String)
842: */
843: public void uncheckCheckbox(String checkBoxName, String value) {
844: webBrowser.uncheckCheckbox(checkBoxName, value);
845: }
846:
847: /**
848: * @see org.ddsteps.web.WebBrowser#uncheckCheckbox(java.lang.String)
849: */
850: public void uncheckCheckbox(String checkBoxName) {
851: webBrowser.uncheckCheckbox(checkBoxName);
852: }
853:
854: /**
855: * @see org.ddsteps.web.WebBrowser#writePage(java.lang.String)
856: */
857: public void writePage(String filename) {
858: webBrowser.writePage(filename);
859: }
860:
861: /**
862: * @see org.ddsteps.web.WebBrowser#writeTrail(java.lang.String)
863: */
864: public void writeTrail(String pageName) {
865: webBrowser.writeTrail(pageName);
866: }
867:
868: /**
869: * @see org.ddsteps.web.WebBrowser#submit(java.lang.String, java.lang.String)
870: */
871: public void submit(String buttonName, String value) {
872: webBrowser.submit(buttonName, value);
873: }
874:
875: // ///CLOVER:ON
876:
877: }
|