0

I have a following code

    selenium.Open("/logon.aspx")
    selenium.type(strUsernameID, pUsername)
    selenium.type(strPasswordId, pPassword)
    selenium.Click(strButtonId)
    selenium.WaitForPageToLoad(600000)
    selenium.click("link=Home")
    selenium.system.threading.thread.sleep(300000)
    selenium.WaitForPageToLoad(600000)

But as soon as I click the home link its redirected back to login page. This code works fine with another URL. I tried by putting id, everything. but couldn't figure out why its behaving like this. Please help me out. as this works fine with other systems...just change the url.

1 Answer 1

0

Can you tell why there is thread sleep after the clicking the link? I think, the page may timeout after signing in.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.