Contact Me
RSSS

Manoj Kumar K
All the content on this website is owned by Manoj Kumar K and its strictly offensive to copy, however you can email me and get a prior permissions if you want it to use some where.
All my posts and views are from my personal point of view and its all based out of my experience. Using Selenium for past 4+ years now. In no way it relates to my employer or my client.

    Email : manojk@assertselenium.com
    Twitter : @manoj9788
    Facebook : http://facebook.com/AssertSelenium
    About Me : http://about.me/manoj9788

Take some time to Fill In the Feedback Form, that will help me to understand what people visit this blog think and it shall help in the betterment of the blog.

16 thoughts on “Contact Me

  1. goran
    April 30, 2013 at 1:05 pm

    hi,
    I’m not new in automated testing but pretty new with selenium and java so would be a big help for me to have a sample project to see the projects’ struscture and all the stuff related.!
    Any idea where can i find this?

  2. July 14, 2013 at 3:23 pm

    Hi Manoj,
    I am trying to make the performance test work as described on this page: “Performance data collection using BrowserMob Proxy and Selenium”. But, I am running into some problems.

    I use Intellij IDE, Java and Maven on a PC running Windows 7. I downloaded the browsermob proxy code and placed it on my c: drive. I did not configure any environment variables. Next I started the proxy and see the 4 lines so it is running. Next I created a new class in Intellij and copied your code in except for the package at the top. However, when I run it I get errors.

    I think the reason I might be getting errors is because I need to ‘create a new proxy’ after I actually start the browsermob proxy bat file. I found this page which goes over the process: https://github.com/lightbody/browsermob-proxy. It is under the ‘rest api’ part. I am stuck at the part where I need to run the ‘curl’ command because apparently you can’t run a curl command in Windows.

    The error I am getting in the test is //start the proxy > server.start(); The error message is:
    Failed to start: SocketListener0@0.0.0.0:4444

    Also, my project does not show any errors, I added the browsermob pom dependency ’2.0-beta-1′ and Intelliji indicates no problems found.

    Can you please help me get my test working?
    Thanks,
    Seth

    1. July 18, 2013 at 2:32 pm

      Just on w quick look of your long comment.

      The error “Failed to start: SocketListener0@0.0.0.0:4444″ is because, Selenium server cannot connect to port 4444 as it may have been occupied with some other process.

      Try with some other port numbers.

  3. Mohan
    August 7, 2013 at 2:16 pm

    Hi Manoj,

    I have a question regarding window handling.

    I am trying to handle a window pop up, which might not be actually a window pop up, but i am not sure how to handle it, can you please help me in this regards:

    Scenario: Go to http://www.salesforce.com and scroll down until you see the View Demo link and it will open the window in new pop up window….

    The problem is that i am not sure how to have the control enter into the fields mentioned in this window.

    I digged at the view source of the page and it looks something like this:

    View demo ›

    Your help in this regards will be greatly appreciated.

    Thanks,
    Mohan

    1. sydeesh
      December 15, 2013 at 5:13 pm

      Hi,
      Here you have store the parent window , switch to popup window then do some operations on popup window .you can work on the parent window by calling parent window .here you go for code for your requirement

      driver=new FirefoxDriver();
      driver.manage().window().maximize();
      driver.get(“http://www.salesforce.com”);
      Thread.sleep(5000);
      driver.findElement(By.xpath(“//*[@id='flexsliderId1']/ul/li[2]/div[1]/div[1]/div/p[4]/a[1]“)).click();
      String prntwnd=driver.getWindowHandle();

      for(String chldwnd: driver.getWindowHandles()){

      driver.switchTo().window(chldwnd);
      Thread.sleep(5000);
      }
      driver.findElement(By.id(“UserFirstName”)).sendKeys(“sydhu”);
      driver.findElement(By.id(“UserLastName”)).sendKeys(“tutika”);
      driver.findElement(By.id(“UserTitle”)).sendKeys(“Test lead”);
      driver.switchTo().window(prntwnd);

      }

      }

  4. Amar
    August 20, 2013 at 1:21 pm

    Hi Manoj,
    We are using Selenium in C#, can you please provide any example on how to implement browsermob proxy in c# .Net environment.

    Thank you
    Amar

  5. purusottam
    October 5, 2013 at 8:39 am

    Hi Manoj,
    i wanna run scrpit in chrome and i have add

    System.setProperty(“webdriver.chrome.driver”,”F://selenium-2.32.0//chromedriver.exe”);
    Webdriver driver = new ChromeDriver();

    but it’s throwing a exception that

    Starting ChromeDriver (v2.3) on port 6050
    FAILED CONFIGURATION: @BeforeClass setUp
    org.openqa.selenium.WebDriverException: chrome not reachable
    (Driver info: chromedriver=2.3,platform=Windows NT 5.1 SP3 x86) (WARNING: The server did not provide any stacktrace information)
    Command duration or timeout: 22.55 seconds
    Build info: version: ’2.32.0′, revision: ’6c40c18′, time: ’2013-04-09 17:23:22′
    System info: os.name: ‘Windows XP’, os.arch: ‘x86′, os.version: ’5.1′, java.version: ’1.7.0_17′
    Driver info: org.openqa.selenium.chrome.ChromeDriver

    Could you give me solution

    Thanks
    Purusottam

  6. sridhar
    October 18, 2013 at 7:50 pm

    Hi Manoj,

    I am regularly check updates of your blog but i do not find Automation testing on PhoneGap using Appium in Android or IOS.Could you please let me know how to do the process,else you can update in your official blog.

    I am really appreciating your effort on creating nice blog.

    Regards,
    Sri.

    1. October 23, 2013 at 6:48 pm

      Hi Sridhar,

      Thank you for your interest in checking out the blog.
      I am in-progress of reformatting this post.

      Soon you will have the new one.

      keep visiting.

      -Manoj

  7. sarmila
    November 15, 2013 at 6:24 am

    Hi Manoj,
    when i login with invalid username and password,one alert pop up is coming.By clicking on Ok on that pop up again i an unable to send username and passowrd.

    Here is my code.
    WebDriver driver=new FirefoxDriver();
    @Test
    public void demo() throws InterruptedException {
    driver.manage().window().maximize();
    driver.get(“http://dev.cropin.in”);
    WebDriverWait wait = new WebDriverWait(driver, 30);
    driver.findElement(By.id(“txtUserName”)).sendKeys(“dfs”);
    driver.findElement(By.id(“txtPassword”)).sendKeys(“dfsf”);
    driver.findElement(By.id(“btnSignIn”)).click();
    wait.until(ExpectedConditions.alertIsPresent());
    driver.switchTo().alert().accept();
    driver.findElement(By.id(“txtUserName”)).sendKeys(“safsd”);
    driver.findElement(By.id(“txtPassword”)).sendKeys(“dfssfsff”);
    driver.findElement(By.id(“btnSignIn”)).click();
    }
    Please help me where i did mistake and how to resolve this issues..

    1. sydeesh
      December 15, 2013 at 4:19 pm

      Hi sarimala,

      you have to go back to parent window when u close the popup so i stored parent window and called that once popup window closed..its works fine.

      driver=new FirefoxDriver();
      driver.manage().window().maximize();
      driver.get(“http://dev.cropin.in”);
      Thread.sleep(5000);
      String parentwidow=driver.getWindowHandle();
      driver.findElement(By.id(“txtUserName”)).sendKeys(“dfs”);
      driver.findElement(By.id(“txtPassword”)).sendKeys(“dfsf”);
      driver.findElement(By.id(“btnSignIn”)).click();
      driver.switchTo().alert().accept();
      Thread.sleep(5000);
      driver.switchTo().window(parentwidow);
      driver.findElement(By.id(“txtUserName”)).sendKeys(“safsd”);
      driver.findElement(By.id(“txtPassword”)).sendKeys(“dfssfsff”);
      driver.findElement(By.id(“btnSignIn”)).click();
      driver.switchTo().alert().accept();

  8. Raju
    January 9, 2014 at 6:32 am

    Hi Manoj,
    I am new to automation and selenium, however i tried to go through different sites and blogs to learn abt it.

    I am trying to automate the webpage mercury tours demo using selenium web driver, i face the below issue:

    In the attached screen shot there are 2 check boxes 1) Ticketless Travel & 2)Same as billing address

    But here all the object properties are the same for both the check boxes

    Check box 1:-

    Ticketless Travel

    Check box 2:-

    Same as Billing Address

    So i tried getting the xpath for identifying the objects, that also failed.

    The xpath for Check box 1: is as follows:

    /x:html/x:body/x:div/x:table/x:tbody/x:tr/x:td[2]/x:table/x:tbody/x:tr[4]/x:td/x:table/x:tbody/x:tr/x:td[2]/x:table/x:tbody/x:tr[5]/x:td/x:form/x:table/x:tbody/x:tr[8]/x:td[2]/x:input

    The xpath for Check box 2: is as follows:

    /x:html/x:body/x:div/x:table/x:tbody/x:tr/x:td[2]/x:table/x:tbody/x:tr[4]/x:td/x:table/x:tbody/x:tr/x:td[2]/x:table/x:tbody/x:tr[5]/x:td/x:form/x:table/x:tbody/x:tr[14]/x:td[2]/x:input

    I used the following script for the xpath

    WebElement chkbox = driver.findElement(By.xpath((“/html/body/div”
    +”/table/tbody/tr/td[2]”
    +”/table/tbody/tr[4]/td”
    +”/table/tbody/tr/td[2]”
    +”/table/tbody/tr[5]/td/form”
    +”/table/tbody/tr[14]/td[2]/input”)));
    chkbox.click();

    But this code didn’t identified the object.

    Please help in resolving this issue

    1. January 9, 2014 at 8:22 pm

      Try to use Firebug/Firepath in Firefox browser to get an working xPath. The locators that you have used in your code in way long starting from HTML that shouldn’t be the way.
      For Eg: Checkbox that you are trying to locator for Ticketless travel in billing address would be //input[@name='ticketLess']
      RightClick on the TicketLess checkbox and click on InspectElement from the context menu and you would see the attributes defined for the element and from that you can form locators.

      Hope that helps!

  9. Sreenath
    January 29, 2014 at 6:34 pm

    Hi Manoj,

    I would like to learn Selinum. Do we need to learn Java language and java script as prerequisite for this? Please suggest me how to proceed on this.

  10. Anil
    February 17, 2014 at 4:36 pm

    Hi Manoj,

    First of all thanks for sharing your skills on Selenium. I am trying to create a silverlight UI test which would simply locate Silverlight controls on the webpage and do some clicks. It seems that there are some issues with current Silvernium.dll because it throws this error—this dll or its dependencies are not found.
    Have you or anyone ever experienced it while working with Silverlight and seleniumfixtures dlls. Could you please share a small sample using these dlls ? it will be a nice starting point. Thanks

  11. Manoj K N
    February 27, 2014 at 8:07 am

    Hi Manoj,

    It really glad to here that selenium conf 2014 will be held in India, Bangalore.

    Currently I am working on selenium web-driver. I would like to attend the conf 2014 along with my automation team.

    Requesting you to share the details of venue and registration process, if you are aware of it.

    Thanks,
    Manoj

Leave a Reply

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