?????????????????????????
???????????? ???????[ 2012/5/21 9:29:20 ] ????????
?????????????????????????????one??????????????two??????????three??????*???????????????one??"two""three"?????????????????????????????one????two????three?????????У??????????????????????????????
?????????????
??????????????????????????е???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????Щ??????????????????????Fitnesse??Selenium????wait-for-and-click????
????????????Σ?
!| scenario | Wait for and click | elementLocator |
| waitForElementPresent | @elementLocator |
| click | @elementLocator |
So from a test itself we need only write:
| open | www.foo.com |
| Wait for and click | link=Welcome to Foo! |
????????????н????????м????????Wait for and click?????????????????????λ???????Σ?????????????????????????????????????????????????????б??е?????????????д???????顣
?????????????????
???????????????????в?????????????????????У???????????????????????????硰if this element exists?? click it?? if it does not exist?? do something else.??????????????????????????????????????????????嶨λ?????μ??????????ò??????????????????????????????λ??·????????????′?????????????????????????????????????????????????????????????????????????????????????????????????????δ??????????
???????Javascript?????????????????
???????????????Selenium??Fitnesse?????о????????????????????????????????У?????????????Social Security Number???????SSN????????????????У?
????????????Σ?
| type; | ssn | javascript{RN =Math.floor(Math.random()*9999999);while (String(RN).length < 8) { RN=RN+??0??;}} |
| $SSN= | getValue | ssn |
| click | link=Save |
| type; | search | $SSN |
| GET SEARCH RESULTS CONTAINING THE SSN |
????Selenium?????????Javascript?????????????м?????ID????ssn?????????????????????9??????????????Javascript???type()??????????????????Fitnesse???????洢?????ssn?????9?????????????$SSN???????????????????????????????ID????search???????????????????????????????????????????????????κκ??????????????????????????????Ч??
????????????????????
??????Щ????Щ?????Э????????????????????????????????????????????????????????????????????????????????????????????
??????

???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11