Skip to content

Commit

Permalink
[NuBank] Voltando a usar Selenium 2.46.0 (reverted from commit d0fbe89)…
Browse files Browse the repository at this point in the history
… por conta do bug SeleniumHQ/selenium#1202
  • Loading branch information
francesquini committed Apr 26, 2016
1 parent c2569cd commit 826cf84
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nubank/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ checkAndDownloadSelenium fname = do
B.writeFile fname bytes
putStrLn "Download terminado"
where
(Just url) = parseURI "http://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.0.jar"
(Just url) = parseURI "http://selenium-release.storage.googleapis.com/2.46/selenium-server-standalone-2.46.0.jar"

startSeleniumServer :: IO ()
startSeleniumServer = do
Expand All @@ -333,8 +333,8 @@ startSeleniumServer = do
(_, _, Just st_err, _) <- createProcess (shell $ "java -jar " ++ fname){std_out = CreatePipe, std_err = CreatePipe}
waitStart st_err
where
-- hardcoded, por enquanto, com a versão 2.53
bname = "selenium-server-standalone-2.53.0.jar"
-- hardcoded, por enquanto, com a versão 2.46
bname = "selenium-server-standalone-2.46.0.jar"
fullFilePath path = path ++ bname
waitStart fstream = do
ln <- hGetLine fstream
Expand Down Expand Up @@ -409,3 +409,4 @@ main = do
where
exHandler :: SomeException -> IO ()
exHandler e = putStrLn $ "Erro durante a execução" ++ displayException e

0 comments on commit 826cf84

Please sign in to comment.