17 comments

  1. sunpat says:

    Part 4,5 and 6 videos are really useful, checked in youtube already, just curious to know if you have videos placed after part 6 to understand the rest of POM, thanks!

  2. Sundeep says:

    Hi Karthik,

    Video uploaded in part 6 is same as part 5 and is repeated in this video series. Could you please sort this?

    Regards,
    Sundeep.

  3. Edko says:

    I am getting the following error when running the code:
    org.openqa.selenium.ElementNotVisibleException

    My code is as follows:package excuteautomation.pom;

    import org.openqa.selenium.WebDriver;
    import org.openqa.selenium.WebElement;
    import org.openqa.selenium.support.FindBy;
    import org.openqa.selenium.support.PageFactory;

    public class GoogleHomePageObjects {

    // initialise anyobject in the page
    public GoogleHomePageObjects(WebDriver driver) {
    PageFactory.initElements(driver, this);

    }

    @FindBy(id=”gs_htif0″)
    public WebElement txtSearch;

    @FindBy(name=”btnG”)
    public WebElement btnSearch;

    }

    package excuteautomation.pom;

    import org.openqa.selenium.WebDriver;
    import org.openqa.selenium.firefox.FirefoxDriver;

    public class GoogleSearchTest {
    public static WebDriver driver = new FirefoxDriver();

    public static void main(String[] args) {
    driver.get(“https://www.google.co.uk”);
    driver.manage().window().maximize();

    //object for the page
    GoogleHomePageObjects page = new GoogleHomePageObjects(driver);
    // search for the text selenium

    page.btnSearch.sendKeys(“selenium”);

    // click the search button
    page.btnSearch.click();

    }

    }

  4. Mohammad Farhan Quraishi says:

    Hi Karthik,

    I have a query related to video 6 in which we are returning a web page i.e. Selenium page.
    I am getting the below error message while I am executing the same code as in your video.

    Error : Exception in thread “main” java.lang.NullPointerException

  5. Mohammad Farhan Quraishi says:

    In Video 7 when you executed the code, it seems that you have got the same error.

    Exception in thread “main” java.lang.NullPointerException
    org.pom.SeleniumPageObjects.ClickDownload(SeleniumPageObjects.java : 25)
    org.pom.GoogleSearchTest.main(GoogleSearchTest.java : 32)

    Please help me out to resolve the error

  6. Sunita says:

    Hi Karthik,

    Your videos are of great help, but here both parts represent the same content. Can you pls check these two videos.

    Thanks.

  7. Dheeraj says:

    I am not able to add static class as its showing error.Could you please let me know where the class needs to be added in order to resolve null pointer exception error.

Leave a Reply

Your email address will not be published. Required fields are marked *