Severino should take screenshots with Selenium
Closed this issue · 2 comments
knorrium commented
Given a list of pages, Severino should iterate through all these pages and take screenshots of them.
Extra: Support multiple browsers
knorrium commented
My initial idea for a config.json file:
{
"pages": {
"yahoo": {
"url": "http://www.yahoo.com",
"filename": "yahoo.png"
},
"google": {
"url": "http://www.google.com",
"filename": "google.png"
},
"terra": {
"url": "http://www.terra.com.br",
"filename": "terra.png"
},
"facebook": {
"url": "http://www.facebook.com",
"filename": "facebook.png"
}
},
"selenium": {
"server": "http://localhost:4444/wd/hub",
"browsers": [
"chrome",
"firefox"
]
}
}
bigodines commented
I had a different idea:
We could create a new pyccuracy statement (or create a custom selenium action) such as:
"And I take a screenshot for rev: abc3432" (or this could be a datatime)
then severino places this file under abc3432/{page_title}.png
and we could verify by running:
Severino.compare({rev a}, {rev b})
in the future, we would have a different directory tree for each browser.