hey adam
here is my little code snippet.
If you point this to
www.xmarks.com (which is the TEST_URL), you'll see the issue.
basically
www.xmarks.com should become
login.xmarks.com when you click the login link. when it runs under windmill, the url stays as
www.xmarks.com (which we talked about over the irc). That page looks fine. But the link which is "Sign in!" is a relative link (<a href="/?referrer...">) . When you click on that site, it ends up back at
www.xmarks.com but it should have ended up on
login.xmarks.com/?referrer...Get it?
Thanks for the help
Jon
# Generated by the windmill services transformer
from windmill.authoring import WindmillTestClient
import windmill
def test_topic_alerts():
client = WindmillTestClient(__name__)
client.open(url=windmill.settings["TEST_URL"])
client.waits.forPageLoad(timeout=u'20000')
client.waits.forElement(link=u'Log In', timeout=u'8000')
client.click(link=u'Log In')
client.waits.forPageLoad(timeout=u'20000')
client.waits.forElement(link=u'Sign in!', timeout=u'8000')
client.click(link=u'Sign in!')
client.waits.sleep(timeout=u'5000')
client.waits.forPageLoad(timeout=u'20000')
client.asserts.assertNode(id=u'username')
client.asserts.assertNode(id=u'password')