Vaidy's Profile
Doctor
409
Points

Questions
1

Answers
49

  • Doctor Asked on March 3, 2015 in Selenium WebDriver.

    Hi Aruna,

    Kindly share the code. I will execute it and tell you the answer.

    Regards,
    Vaidy

    • 745 views
    • 4 answers
    • 0 votes
  • Doctor Asked on March 3, 2015 in Selenium WebDriver.

    Hi pboyina,

    The error indicates that there is no constructor in the class XSSFWorkbook class that takes a FileInputStream argument. If you are using this XSSFWorkbook class, then from its API you can see a constructor that takes a java.io.InputStream and hence you should receive no error.

    The reason might be you are using an older version of the jar file which contains XSSFWorkbook class.

    Regards,
    Vaidy

    • 1421 views
    • 1 answers
    • 0 votes
  • Doctor Asked on March 3, 2015 in Selenium WebDriver.

    Hi shashank,

    TestNG framework is best than JUnit. Here, you can see the advantages of TestNG over JUnit. Kindly check this link http://www.toolsqa.com/selenium-webdriver/testng-introduction/

    Regards,
    Vaidy

    • 1247 views
    • 2 answers
    • 0 votes
  • Doctor Asked on March 3, 2015 in Selenium WebDriver.

    Hi Aruna,

    The best approach is using TestNG framework. Here, you can split the scripts into blocks and you can easily identify where the errors are occuring. So, use TestNG framework.

    Regards,
    Vaidy

    • 745 views
    • 4 answers
    • 0 votes
  • Doctor Asked on September 19, 2014 in Selenium WebDriver.

    Hi Divya,

    For selenium 2.42.2 the supported firefox version is 31.0 and supported version of firebug is 2.0.4. Now selenium 2.43.1 version has released. This supports firefox latest version 32.0.1 and 2.0.4 version of firebug.

    Regards,
    Vaidy

    • 750 views
    • 1 answers
    • 0 votes
  • Doctor Asked on September 16, 2014 in Selenium WebDriver.

    Hi jagadeesh,

    What you have asjed is not related with this site. Anyhow, I have shared the link for you. Make use of it.
    Visit http://www.igorexchange.com/node/87 for better understanding.

    Regards,
    Vaidy

    • 654 views
    • 1 answers
    • 0 votes
  • Doctor Asked on September 15, 2014 in Selenium WebDriver.

    Hi kishore,

    Below is the solution for running testng suite in command prompt using maven command. I think it may help you.

    The simplest solution to run tests in parallel is to use the configuration for the maven-surefire-plugin like this:

    Usually you don’t need a separate testng.xml file to run the tests, cause they will be run by default based on the naming conventions for tests. Furthermore it’s not needed to make separate include rules apart from that your given definition is wrong.

    You can control which tests will run in relationship with TestNG via the groups parameter like this:

    Furthermore it’s possible to control which tests will run via the test property like this:

    or

    A more fine granular way to specify tests from command line is like this:

    which run the method myMethod in the MyTest class.

    Regards,
    Vaidy

    This answer accepted by kishore. on December 12, 2014 Earned 15 points.

    • 748 views
    • 1 answers
    • 0 votes
  • Doctor Asked on September 5, 2014 in Selenium WebDriver.

    Hi Kishore,

    i have given the steps to run TestNG via command prompt. You doesn’t need eclipse to run the suite. I hope it will work.

    This is how you can compile and run testng tests from command line. Follow the steps below:

    1. Download and Install JDK from http://java.sun.com/javase/downloads/index.jsp

    2. The below bat file compiles and runs the dataProviderExample test explained in my earlier blog post. Read that post before trying this.

    3. The project folder is at C:\MyEclipseWorkspace\dataDrivenTestProject. You would have to modify javaTestProjectPath variable in the bat file if your project folder lies elsewhere.

    4. Java development kit or JDK is installed at C:\Program Files\java\jdk1.6.0_18, You need to change this if your jdk folder path is different from this. This will happen if you are using a different version of java than mine.

    5. The testng.xml file given below is placed at C:\MyEclipseWorkspace\dataDrivenTestProject.


    6. Open Notepad and copy paste the below commands. Unselect word wrap from format–>word wrap in Notepad. This will ensure that there are no unwanted line breaks. Now save the file as testng.bat anywhere in your local machine. Double click the bat file to run.


    Read the REM statements in the bat file to understand the commands used.

    Regards,
    Vaidy

    This answer accepted by kishore. on December 12, 2014 Earned 15 points.

    • 1953 views
    • 1 answers
    • 0 votes
  • Doctor Asked on September 5, 2014 in Selenium WebDriver.

    Hi Riffat,

    You have not specified what type of OS you are using. I have given the answer for firefox browser in ubuntu OS.

    The problem is incorrect processing proxy exclusions. Default Ubuntu exclusions are located in no_proxyenvironment variable:

    But it seems that /8 mask doesn’t work for selenium. To workaround the problem it is enough to changeno_proxy to the following:

    Removing proxy settings before running python script also helps:

    Hope it will help you.

    Regards,
    Vaidy

    • 1413 views
    • 1 answers
    • 0 votes
    • 1512 views
    • 2 answers
    • 0 votes
  • Doctor Asked on September 2, 2014 in Selenium WebDriver.

    Hi anu,

    Mostly scripting languages are not necessary for using selenium. You need to have knowledge in selenium. Also, you need to know the basics of Java. Thats all you need for selenium.

    Regards,
    Vaidy

    This answer accepted by anu17. on September 11, 2014 Earned 15 points.

    • 531 views
    • 2 answers
    • 0 votes
  • Doctor Asked on September 1, 2014 in Selenium WebDriver.

    Hi Virender,

    The syntax for executeAsyncScript is:

    Here, I have included 2 examples.

    Example #1: Performing a sleep in the browser under test.

    Example #2: Synchronizing a test with an AJAX application:

    I hope it may help you.

    Regards,
    Vaidy

    • 2665 views
    • 1 answers
    • 0 votes
    • 3901 views
    • 5 answers
    • 0 votes
  • Doctor Asked on August 28, 2014 in Selenium WebDriver.

    Hi priya,

    You are talking about the improvement of this site. Kindly post this in the testimonials site. Visit http://www.toolsqa.com/testimonials/ to provide your message. This forum is for the questions related to SELENIUM ONLY.

    Regards,
    Vaidy

    • 843 views
    • 3 answers
    • 0 votes
  • Doctor Asked on August 28, 2014 in Selenium WebDriver.

    Hi jogesh,

    You can follow the method given below. Hope it will work.

    The standard for defining a multi -line String literal in both Scala and Groovy is three double quotes. The syntax is:

    Regards,
    Vaidy

    • 3904 views
    • 2 answers
    • 1 votes
  • Doctor Asked on August 28, 2014 in Selenium WebDriver.

    Hi jogesh,

    You can also use sikuli concept here for clicking the ‘okay’ button.

    Regards,
    Vaidy

    • 1028 views
    • 3 answers
    • 0 votes
  • Doctor Asked on August 28, 2014 in Selenium WebDriver.

    Hi jogesh,

    You can use Sikuli script for this. Just record those compose mail actions in sikuli and place the sikuli code in web driver. It will work for sure.

    Regards,
    Vaidy

    • 1552 views
    • 3 answers
    • 0 votes
  • Doctor Asked on August 28, 2014 in Selenium WebDriver.

    Hi jogesh,

    Please see the below code. It may help you.

    Regards,
    Vaidy

    • 1531 views
    • 1 answers
    • 1 votes
    • 2714 views
    • 7 answers
    • 1 votes
  • Doctor Asked on August 26, 2014 in Selenium WebDriver.

    Hi Kishore,

    To handle this situation you can  use some JavaScript functions.
    starts-with 
    if your dynamic element’s ids have the format  where button id=”continue-12345″  where 12345 is a dynamic number you could use the following
    XPath: //button[starts-with(@id, ‘continue-‘)] 
    contains 
    Sometimes an element gets identified by a value that could be surrounded by other text, then contains function can be used. I think it will help you.

    Regards,
    Vaidy

    • 3915 views
    • 3 answers
    • 0 votes
  • Doctor Asked on August 26, 2014 in Selenium WebDriver.

    Hi ravipatil,

    You can give thread sleep command. It will delay the execution for certain seconds. The syntax for thread sleep is Thread.sleep(any number). It will take the numbers in milli seconds. In your case, for 30 seconds you can specify as Thread.sleep(30000L);. I think it may help you.

    Regards,
    Vaidy

    • 1646 views
    • 6 answers
    • 1 votes
  • Doctor Asked on August 22, 2014 in Selenium WebDriver.

    Hi Rocky,

    For both questions the answer is “Yes, it will return the value.”.
    The first command will return a string of alphanumeric window handle and the second command will return a set of window handle. For more details and usage of those commands, visit http://www.toolsqa.com/selenium-webdriver/switch-commands/.

    Regards,
    Vaidy

    • 16393 views
    • 4 answers
    • 1 votes
    • 3128 views
    • 4 answers
    • 0 votes
  • Doctor Asked on August 22, 2014 in Selenium WebDriver.

    Hi sajal,

    Visit http://www.toolsqa.com/selenium-webdriver/dropdown-multiple-select-operations/ site. You can get clear understanding about the problem you are facing.

    Regards,
    Vaidy

    • 2655 views
    • 8 answers
    • 1 votes
  • Doctor Asked on August 22, 2014 in Selenium WebDriver.

    Hi sajal,

    Visit http://www.toolsqa.com/selenium-webdriver/dropdown-multiple-select-operations/ site. You can get clear understanding about the problem you are facing.

    Regards,
    Vaidy

    • 764 views
    • 4 answers
    • 0 votes