سؤال

I am using Selenium WebDriver(a.k.a. Selenium 2) with Java. For clicking "Sign In" button of Yahoo mail, I have written the following code:

driver.findElement(By.id(".save")).click();

But unfortunately, it is not working. What's the wrong with my code? Can anybody help me?

هل كانت مفيدة؟

المحلول

If the browser is not maximized during execution of the test, please maximize the browser by using the following line of code:

driver.manage().window().maximize();

Then, "Sign In" button would be visible on the page and hopefully it should work.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top