Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #10 from slamdata/fix/chrome75
Browse files Browse the repository at this point in the history
added a variant of posting
  • Loading branch information
cryogenian authored Aug 2, 2019
2 parents 1fb7ef4 + c826d39 commit 3e02612
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/Lunapark/API.purs
Original file line number Diff line number Diff line change
Expand Up @@ -494,10 +494,16 @@ handleLunapark inp = case _ of
res ← get (inSession : inElement : LP.Enabled : Nil)
map cont $ throwLeft $ J.decodeJson res
ClickEl next → do
_ ← post_ (inSession : inElement : LP.Click : Nil)
_ ← tryAndCache "chromedriver75 update clickElement"
[ post_ (inSession : inElement : LP.Click : Nil)
, post (inSession : inElement : LP.Click : Nil) $ LT.encodeElement el
]
pure next
ClearEl next → do
_ ← post_ (inSession : inElement : LP.Clear : Nil)
_ ← tryAndCache "chromedriver75 update clearElement"
[ post_ (inSession : inElement : LP.Clear : Nil)
, post (inSession : inElement : LP.Click : Nil) $ LT.encodeElement el
]
pure next
SendKeysEl txt next → do
_ ← tryAndCache "send keys chromedriver hack"
Expand All @@ -517,7 +523,10 @@ handleLunapark inp = case _ of
]
map cont $ throwLeft $ J.decodeJson res
Submit next → do
_ ← post_ (inSession : inElement : LP.Submit : Nil)
_ ← tryAndCache "chromedriver75 update submit form"
[ post_ (inSession : inElement : LP.Submit : Nil)
, post (inSession: inElement : LP.Submit : Nil) $ LT.encodeElement el
]
pure next

where
Expand Down

0 comments on commit 3e02612

Please sign in to comment.