Slide 106
Slide 106 text
{
elements: {
field: { name: 'q' },
button: { css: input
[type=submit]
},
search: function(term) {
this.field = term;
return this.field.submit();
}
}
{
description:
"Chercher un mot
ambigu devrait
ouvrir une boîte zero-
click",
scenario:
[
SearchBarWidget.search, "Toto",
{
'ZeroClickWidget.header':
"Meanings of Toto"
}
]
}
term = "Toto"
{
elements: {
field: { name: 'q' },
button: { css: input
[type=submit]
},
search: function(term) {
this.field = term;
return this.field.submit();
}
}
DuckDuckGo
{
baseURL: 'https://
duckduckgo.com/',
// see all allowed values
at http://code.google.com/p/
selenium/wiki/DesiredCapabilities
driverCapabilities: {
browserName: 'firefox'
}
}
config.js
https://duckduckgo.com
44
{
baseURL:…,
browser:…
}