I am trying to do the following and recording it in IDE and trying to re run it..
- open google
- in search i write "selenium"
- click "search" button
- just clicking on one of the link and its redirecting to that specific link
it is storing all the steps in IDE but when trying to re-run it its not redirecting to that specific link....i want to know if there any other way...plz reply...
also tried it with java code..
package sel1;
import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.Selenium;
public class sample1{
public static void main(String args[]){
Selenium selenium = new DefaultSelenium("localhost",4444,"*chrome","https://www.google.co.in/");
selenium.start();
selenium.open("/?gws_rd=cr&ei=3ajRUq-vIYqBrgeVyYGgCQ");
selenium.type("id=gbqfq", "selenium");
selenium.click("link=Selenium - Web Browser Automation");
selenium.waitForPageToLoad("30000");
}
}