Selenium IDE - Yahoo Login Issue

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Selenium IDE - Yahoo Login Issue

AutoEngr
Hey all you Selenium Guru.... Here's an interesting one for you all...

When I tried to build an auto script for a Yahoo Login.. I can't seem to get the script to capture the object for the "Enter your email" textbox.. I tried using "sendKeys" so it will type in "whatever" I input, and when I run the script, it passes, but nothing is shown within that field.. It's showing up blank... HELP.... I need this so I can proceed with testing email notifications.
Thoughts??? Please look at the image attached for more clarification.
Thanks a BUNCH!
AutoEngr-

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/fc114a5a-7c4c-440c-9c39-d7b7333f0233%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

YahooLoginIssue1.jpg (262K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Selenium IDE - Yahoo Login Issue

⇜Krishnan Mahadevan⇝

Unrelated question: Why are you trying to automate Yahoo Mail ?

You can make use of a programming language such as Java for interacting with a Yahoo mailbox.

 

Take a look at this : https://stackoverflow.com/a/11356464

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

 

From: <[hidden email]> on behalf of AutoEngr <[hidden email]>
Reply-To: <[hidden email]>
Date: Thursday, June 1, 2017 at 6:52 PM
To: Selenium Users <[hidden email]>
Subject: [selenium-users] Selenium IDE - Yahoo Login Issue

 

Hey all you Selenium Guru.... Here's an interesting one for you all...

 

When I tried to build an auto script for a Yahoo Login.. I can't seem to get the script to capture the object for the "Enter your email" textbox.. I tried using "sendKeys" so it will type in "whatever" I input, and when I run the script, it passes, but nothing is shown within that field.. It's showing up blank... HELP.... I need this so I can proceed with testing email notifications.

Thoughts??? Please look at the image attached for more clarification.

Thanks a BUNCH!

AutoEngr-

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/fc114a5a-7c4c-440c-9c39-d7b7333f0233%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/02B72F2F-382D-4C5B-A96B-81BEACBE39DD%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Selenium IDE - Yahoo Login Issue

Anda Cristea
Are you interested to write a script for Yahoo email?

On Thursday, June 1, 2017 at 6:55:38 PM UTC+3, Krishnan wrote:

Unrelated question: Why are you trying to automate Yahoo Mail ?

You can make use of a programming language such as Java for interacting with a Yahoo mailbox.

 

Take a look at this : <a href="https://stackoverflow.com/a/11356464" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fa%2F11356464\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEoP0_Y-Oexw7niE0tQv8ha8HuTdg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fa%2F11356464\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEoP0_Y-Oexw7niE0tQv8ha8HuTdg&#39;;return true;">https://stackoverflow.com/a/11356464

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwakened-cognition.blogspot.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/

My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Frationaleemotions.wordpress.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

 

From: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="i-ITem1TCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com> on behalf of AutoEngr <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="i-ITem1TCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">youn...@...>
Reply-To: <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="i-ITem1TCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com>
Date: Thursday, June 1, 2017 at 6:52 PM
To: Selenium Users <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="i-ITem1TCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com>
Subject: [selenium-users] Selenium IDE - Yahoo Login Issue

 

Hey all you Selenium Guru.... Here's an interesting one for you all...

 

When I tried to build an auto script for a Yahoo Login.. I can't seem to get the script to capture the object for the "Enter your email" textbox.. I tried using "sendKeys" so it will type in "whatever" I input, and when I run the script, it passes, but nothing is shown within that field.. It's showing up blank... HELP.... I need this so I can proceed with testing email notifications.

Thoughts??? Please look at the image attached for more clarification.

Thanks a BUNCH!

AutoEngr-

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="i-ITem1TCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="i-ITem1TCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/fc114a5a-7c4c-440c-9c39-d7b7333f0233%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/fc114a5a-7c4c-440c-9c39-d7b7333f0233%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/fc114a5a-7c4c-440c-9c39-d7b7333f0233%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/fc114a5a-7c4c-440c-9c39-d7b7333f0233%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/dc9ce506-1309-4f0b-b0b1-3c12d45f1847%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Selenium IDE - Yahoo Login Issue

Akshat Gupta
In reply to this post by ⇜Krishnan Mahadevan⇝
package com.example.tests;

import java.util.regex.Pattern;
import java.util.concurrent.TimeUnit;
import org.junit.*;
import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.Select;

public class Yahoo {
  private WebDriver driver;
  private String baseUrl;
  private boolean acceptNextAlert = true;
  private StringBuffer verificationErrors = new StringBuffer();

  @Before
  public void setUp() throws Exception {
    driver = new FirefoxDriver();
    baseUrl = "https://login.yahoo.com/";
    driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
  }

  @Test
  public void testYahoo() throws Exception {
    driver.get(baseUrl + "/beta?.src=fpctx&.intl=in&.lang=en-IN&.done=https%3A%2F%2Fin.yahoo.com&authMechanism=primary&yid=&done=https%3A%2F%2Fin.yahoo.com%2F&eid=100&add=1");
    driver.findElement(By.id("login-username")).clear();
    driver.findElement(By.id("login-username")).sendKeys("****");
    driver.findElement(By.id("login-signin")).click();
    driver.findElement(By.id("login-passwd")).click();
    driver.findElement(By.id("login-passwd")).clear();
    driver.findElement(By.id("login-passwd")).sendKeys("*****");
    driver.findElement(By.id("login-signin")).click();
    //driver.findElement(By.linkText("I'll secure my account later")).click();
  }

  @After
  public void tearDown() throws Exception {
    driver.quit();
    String verificationErrorString = verificationErrors.toString();
    if (!"".equals(verificationErrorString)) {
      fail(verificationErrorString);
    }
  }

  private boolean isElementPresent(By by) {
    try {
      driver.findElement(by);
      return true;
    } catch (NoSuchElementException e) {
      return false;
    }
  }

  private boolean isAlertPresent() {
    try {
      driver.switchTo().alert();
      return true;
    } catch (NoAlertPresentException e) {
      return false;
    }
  }

  private String closeAlertAndGetItsText() {
    try {
      Alert alert = driver.switchTo().alert();
      String alertText = alert.getText();
      if (acceptNextAlert) {
        alert.accept();
      } else {
        alert.dismiss();
      }
      return alertText;
    } finally {
      acceptNextAlert = true;
    }
  }
}

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/b91f59d9-805f-4864-aa25-b019971df5cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.