Hi Shawn,
The tools aims to record only the
PageObject WebElements (locators). The output will be a PageObject
skeleton with the list of web elements and other boilerplate code
(including some generic methods).
At the moment, the tool does not
generate PageObject methods (actions) which require a human
intelligence to be created. On the other hand, tool can
generate some actions which require only mechanic actions.
On the picture below, there is a method
inside PageObject “VerifyExpectedElementsAreDisplayed”, which
just make a method call for each declared WebElement and checks
wherever the element is displayed. Such code can be generated.
Lets say I have a LoginPage, will this tool create a method to signIn (which takes username, password, and clicks sign in button for example)? Or does this tool just take all the elements on the page, and create a method to interact with it individually ?Thank you!
On Tuesday, January 7, 2014 7:38:22 AM UTC-7, Dmytro Zharii wrote:Dear Selenium Users,I am glad to announce my open source pet project – SWD Page Recorder.The utility aims to:
- collect the WebElements in runtime
- debug XPath/CSS locator even with Internet Explorer (as well as in any other supported web-browser)
- generate PageObject-classes on several languages: C#, Java, Ruby, Python.
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/epneoHaOymk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/f2cdadb9-85ef-4d4f-b863-1a702e4a3816%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/epneoHaOymk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/b6d882b5-3e36-453d-ad34-26bec8c523a0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/1cf139be-6898-41cb-87a2-98dad0391cea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
...
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/epneoHaOymk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/39629f54-9cd4-4a72-bccb-10011e332075%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ca2d08a9-8b47-431e-99d4-c79d961a1dbb%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/dc74e47c-e173-4734-a36f-f0994d9cc2e8%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/d4036622-738c-466c-8b57-7d6976584589%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/0dd06a0c-7573-4007-9b23-26bf05090e8d%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/epneoHaOymk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c8183fa0-3e59-4889-84b5-4d010dae1b84%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/epneoHaOymk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/1ac74054-8e50-4718-bb9d-6e0b8a5592ca%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/989224ed-168f-4035-a134-92838ce4e123%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/epneoHaOymk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/d5a5aeaf-7046-4854-aaec-00de57ba2b68%40googlegroups.com.
<iframe | |
id="clientCoFrame |
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/epneoHaOymk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/f6cd1a51-d862-403c-bdb6-ca8291821a1e%40googlegroups.com.
Hello Dmytro,
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/epneoHaOymk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c59fe10d-ab6d-4ab9-954f-7f22ce1c549f%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/epneoHaOymk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/78c31677-4ceb-429a-a2b4-bcaef2728705%40googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/78c31677-4ceb-429a-a2b4-bcaef2728705%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/epneoHaOymk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CADi-DA-PB08GhKSGDHeigz5wn2zSbHGmD8hTRfN9K%2B%3D1mzta9Q%40mail.gmail.com.
Thank you..It works!
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/78c31677-4ceb-429a-a2b4-bcaef2728705%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/epneoHaOymk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
package basic.basic;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.CacheLookup;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.chrome.driver","C://Sprints//chromedriver_win32//chromedriver.exe");
//System.setProperty("webdriver.gecko.driver","C://Sprints//geckodriver-v0.19.0-win64//geckodriver.exe");
WebDriver driver = new ChromeDriver();
// WebDriver driver = new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
driver.get("http://utubehits.com/");
driver.findElement(By.name("login")).sendKeys("wealthyta...@gmail.com");
driver.findElement(By.name("pass")).sendKeys("Tapan@321");
driver.findElement(By.name("connect")).click();
driver.findElement(By.linkText("YouTube Views")).click();
driver.findElement(By.linkText("Watch Video")).click();
System.out.println(driver.getTitle());
//driver.switchTo().parentFrame();
List<WebElement> frameElements = driver.findElements(By.cssSelector("iframe[id='iframe']"));
System.out.println(frameElements.size()); //HERE I PUT BREAK POINT
driver.switchTo().frame(driver.findElement(By.cssSelector("iframe[id='ytPlayer']")));//HERE I PUT BREAK POINT
Thread.sleep(3000);
driver.findElement(By.cssSelector("button[class='ytp-large-play-button ytp-button']")).click();