Annoucement: New Java and Selenium batch is starting from October 28th Nov, Please enroll ASAP!

Contact Us



Contact Us


In case of any query on training and automation solution,

Please mail me at : naveenanimation20@gmail.com
What's app me at: +91-9902233400


Join my Facebook Page:

https://www.facebook.com/groups/naveenqtpexpert

Join Telegram group:
Automation QA Experts (Naveen AutomationLabs) - Telegram Group

Connect me on LinkedIn:
https://www.linkedin.com/in/naveenkhunteta/

Subscribe to my channel, and press bell icon to get some interesting videos on Selenium and Automation:
https://www.youtube.com/c/Naveen%20AutomationLabs?sub_confirmation=1




Cheers!
Naveen AutomationLabs

16 comments:

  1. Hi Naveen, I have been learning your tutorials and my java and selenium skills are improved from your tutorials, Kindly upload videos on mobile automation, passing arguments with xpath or generalazing xpath using regular expression concept and use of session variables

    ReplyDelete
  2. Hi naveen,
    i need notes for Roles and responsibilities and tell me about yourself.
    my mail id: poli.rsreddy@gmail.com

    ReplyDelete
  3. Hi

    Please provide the details on next batch selenium classes

    ReplyDelete
  4. Hi
    I have a issue in dropdown, developer using a "span tag html" dropdown and how to use span dropdown in automation.

    ReplyDelete
  5. Hi Naveen,

    When is the next batch for Selenium is starting, my team wants to participate..

    Thanks

    ReplyDelete
  6. Hi Naveen,

    Do we have any automated test tools for White box testing of salesforce application?

    Thanks

    ReplyDelete
  7. Hi Naveen,
    I have been learning soapUI ,but can find only part I on youtube the part II that covers assertions i could not find.I am stuck pls help me find the tutorial!

    ReplyDelete
  8. Hello Naveen,
    please upload videos of SQL query and how does it related to the framework

    ReplyDelete
  9. i am using ubuntu please explain me how to launch browser here and how to set path for (key, value) for path

    ReplyDelete
  10. Unable to parameterize the drop down value in selenium cucumber. below is the code:

    Feature file:
    Feature: Registration

    Scenario: User Registration for Online Flight Booking
    Given Browser Initiated
    And User logged into NewtoursDemo site
    When User clicked REGISTER link
    And Entered/Selected "Amit" and "Pachange" and "9309952372" and "pachangeamit@gmail.com" and "535 Narayan Peth" and "Pune" and "Maharashtra" and "411030" and "INDIA" and "pachangeamit" and "newNEW@123" and "newNEW@123"
    And Submit the Details
    Then User Registration activity completed successfully and User closed the browser



    ReplyDelete
  11. stepDefinition class:
    package stepDefinition;

    import org.openqa.selenium.By;
    import org.openqa.selenium.WebDriver;
    import org.openqa.selenium.WebElement;
    import org.openqa.selenium.chrome.ChromeDriver;
    import org.openqa.selenium.support.ui.Select;

    import cucumber.api.java.en.Given;
    import cucumber.api.java.en.Then;
    import cucumber.api.java.en.When;

    public class RegStepDefinition {
    WebDriver driver;
    @Given("^Browser Initiated$")
    public void browser_Initiated() throws Throwable {
    System.setProperty("webdriver.chrome.driver", "D:\\Selenium Trainning Files\\chromedriver.exe");
    driver = new ChromeDriver();

    }

    @Given("^User logged into NewtoursDemo site$")
    public void user_logged_into_NewtoursDemo_site() throws Throwable {
    driver.get("http://newtours.demoaut.com");

    }

    @When("^User clicked REGISTER link$")
    public void user_clicked_REGISTER_link() throws Throwable {
    driver.findElement(By.linkText("REGISTER")).click();

    }

    @When("^Entered/Selected \"([^\"]*)\" and \"([^\"]*)\" and \"([^\"]*)\" and \"([^\"]*)\" and \"([^\"]*)\" and \"([^\"]*)\" and \"([^\"]*)\" and \"([^\"]*)\" and \"([^\"]*)\" and \"([^\"]*)\" and \"([^\"]*)\" and \"([^\"]*)\"$")
    public void entered_Selected_First_Name_and_Last_Name_and_Phone_and_Email_and_Address_and_City_and_State_and_Postal_Code_and_Country_and_User_Name_and_Password_and_Confirm_Password(String FNAME,String LNAME,String Phone,
    String Email,String Address,String City,String State,String PIN,String Cntr,String Uname,String pwd,String conpwd) throws Throwable {
    driver.findElement(By.xpath("//input[@name='firstName']")).sendKeys("FNAME");
    driver.findElement(By.xpath("//input[@name='lastName']")).sendKeys("LNAME");
    driver.findElement(By.xpath("//input[@name='phone']")).sendKeys("Phone");
    driver.findElement(By.xpath("//input[@id='userName']")).sendKeys("Email");
    driver.findElement(By.xpath("//input[@name='address1']")).sendKeys("Address");
    driver.findElement(By.xpath("//input[@name='city']")).sendKeys("City");
    driver.findElement(By.xpath("//input[@name='state']")).sendKeys("State");
    driver.findElement(By.xpath("//input[@name='postalCode']")).sendKeys("PIN");
    Thread.sleep(2000);
    WebElement we = driver.findElement(By.xpath("//select[@name='country']"));
    Select se = new Select(we);
    se.selectByValue("Cntr");
    driver.findElement(By.xpath("//input[@id='email']")).sendKeys("Uname");
    driver.findElement(By.xpath("//input[@name='password']")).sendKeys("pwd");
    driver.findElement(By.xpath("//input[@name='confirmPassword']")).sendKeys("conpwd");

    }

    @When("^Submit the Details$")
    public void submit_the_Details() throws Throwable {
    driver.findElement(By.xpath("//input[@name='register']")).click();

    }

    @Then("^User Registration activity completed successfully and User closed the browser$")
    public void user_Registration_activity_completed_successfully() throws Throwable {
    driver.close();

    }

    }

    ReplyDelete
  12. Getting below mentioned error:
    org.openqa.selenium.NoSuchElementException: Cannot locate option with value: Cntr
    For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html
    Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
    System info: host: 'AMITPACHANGE', ip: '192.168.43.115', os.name: 'Windows 8', os.arch: 'x86', os.version: '6.2', java.version: '1.8.0_191'
    Driver info: driver.version: unknown
    at org.openqa.selenium.support.ui.Select.findOptionsByValue(Select.java:283)
    at org.openqa.selenium.support.ui.Select.selectByValue(Select.java:186)
    at stepDefinition.RegStepDefinition.entered_Selected_First_Name_and_Last_Name_and_Phone_and_Email_and_Address_and_City_and_State_and_Postal_Code_and_Country_and_User_Name_and_Password_and_Confirm_Password(RegStepDefinition.java:48)
    at ?.And Entered/Selected "Amit" and "Pachange" and "9309952372" and "pachangeamit@gmail.com" and "535 Narayan Peth" and "Pune" and "Maharashtra" and "411030" and "INDIA" and "pachangeamit" and "newNEW@123" and "newNEW@123"(cucumber.feature:7)

    ReplyDelete
  13. Quicken Software are considered among the most popular Software all over the world. The company has gained millions of users worldwide because of the attractive features and impressive printing quality. Quicken Support Number
    Checkout the Quicken support number to get resolution of any Problem Related to Quick books Software . We are always available for your Support 365 days. If yes, you're in the right place, get one-stop solutions for all sorts of Quicken issues and get them resolved within no time just by contacting Quicken support customer toll-free number +1-888-422-3444.

    ReplyDelete
  14. Hello Naveen ,I need your help in popup modal . I am learning to create Framework for #Amazon.com. On Homepage, there is a delivery option link, clicking on it popup modal comes up. I tried to use windowhandle, there is no Iframe and also Switch to active Element not working . Would please give me your suggestion.
    Actions action = new Actions(driver);
    action.moveToElement(lnkdeliver).build().perform();
    lnkdeliver.click();
    Thread.sleep(7000);
    driver.switchTo().activeElement();
    // Sign in to see Address
    WebElement ele = driver.findElement(By.xpath("//span[@id='GLUXSignInButton']//input[@type='submit']");
    ele.click();
    BtnDone.click();


    Thanks in advance

    ReplyDelete
  15. Please provide the details on next batch selenium classes

    ReplyDelete
  16. Naveen, Can you please upload videos abt the code review, Automation best practices and Code Debugging from Basics etc

    ReplyDelete

Featured Post

How to control Chromedriver using curl

How to control Chromedriver using curl Here is how to use Chromedriver without libraries like  selenium-webdriver . This can be useful ...