Home How to access external website using Geb
Reply: 0

How to access external website using Geb

user845 Published in June 19, 2018, 2:33 pm

I am automating my project using Geb and Groovy. For Example: I am logging into Gmail and I define different Pages as - Inbox, Sent Item, Trash, Drafts, etc. Now in my spec I wanted to access an external website like yahoomail. How can I define it the spec to access an external Webiste. I use "go" to navigate to yahoo mail as below in my spec

    then: "I go to Yahoo mail page"
    go "https://login.yahoo.com/"

    and: "Signing into Yahoo mail "
    at YahooLoginPage

In the YahooLoginPage.groovy it is not finding the Next button which I define as static at

static at = { $("#login-signin") }

Error message I get :

Condition not satisfied:

go "https://login.yahoo.com/"



Is there any other way to do this?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.419843 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO