Tag Info

New answers tagged

0

The Selenium Grid and Node is downward compatible. It works with Selenium 1 and Selenium 2 / WebDriver. The seleniumProtocol parameters define for what version of Selenium the configuration apply. Selenium = Selenium 1 WebDriver = Selenium 2 / WebDriver


0

This is a sample of working code - selecting sex by male and female radio buttons. /* load that webelement list of radio buttons. then follow the below code & logic List<WebElement> rdBtn_Sex = driver.findElements(By.name("sex")); // Create a boolean variable which will hold the value (True/False) boolean bValue = false; ...


0

Use the Actions object to open a new tab. Perform a action who press and hold the ctrl key and after that press the t key. After that release all keys. ctrl and t is the shortcut to open a new tab in the most browsers. To switch between the tabs you use the following shortcut: ctrl and TAB.


1

Try using SIkuli it can automate anything , since it uses Image recognition http://www.sikuli.org/


3

No, Selenium 2 / WebDriver is for web applications only. But there are other tools to automate desktop application GUI tests. http://en.wikipedia.org/wiki/List_of_GUI_testing_tools You can also search for "desktop application" on this site to find recommended tools.


0

This should work: class Hull { protected WebDriver driver; @BeforeMethod public void initializeDriver() { // Initialize the driver here. } } class ClassWithTestMethods extends Hull { // Test methods with @Test annotation. // Use the driver variable of Hull in the test methods. } The initializeDriver method should always ...


1

Something like this should work: public boolean isTextOnPagePresent(String text) { WebElement body = driver.findElement(By.tagName("body")); String bodyText = body.getText(); return bodyText.contains(text); } Currently I have no possibility to test that. If it should not work, you could try to use getPageSource() instead of get the text of the ...


0

Here is how it works in Ruby:' # test.rb require 'selenium-webdriver" @browser = Selenium::WebDriver.for :chrome @browser.navigate.to "http://www.google.com" dir_to_jquery = Dir.pwd + '/features/support/ajax_resources' # jQuerify.js is the same java script posted above by Joe Coder jquerystring = ...


0

Thanks for your responses finally I solved it cutting out some plugins and blocked some third party ads before starting the tests. Solution 1: There are some plugins like flash player which may hangs the browser inconsistently waiting for some resource during test run, try disabling such plugins while starting the test using the chrome switches. ...


1

Approach 1 Create a class, for example Hull. In the cass is a protected variable WebDriver driver. In the class is a method setup() with a @Before annotation. In the method you has a condition: Is WebDriver null, initialize; else do nothing. Classes with test cases extends from Hull. Classes with test cases can use the variable driver. Approach 2 ...


-1

This post could help you out: http://www.softwaretestingclub.com/profiles/blogs/selenium-2-0-webdriver-how-to-configure-selenium-webdriver-in


0

Please add your HTML code properly so we can look into this. Please go through the below links. Select option Selenium2Library


1

It sounds like the majority of your issue is in creating the connection to your Database. However, you lack to mention the type of database so I will try and cover some of the more popular ones. Oracle Tutorial or SO Question SQL Server JTDS I could list all of the types of databases for years so here is a list of database related tutorials. If you need ...


1

Like Josa Pita says, that is nothing for testing frameworks itself. The developers could write a script to save the current version of the DB. The process should look like that: Save current version of DB/any kind of data storage. Start test run. After test run finished restore the saved version of the DB/any kind of data storage. But I think it is ...


0

In our application we are using web-services and DB, is it possible to integrate Selenium webdriver with web-services (Soap UI)? Since this is in Java, yes it is possible to interact with SoapUI using the test runner or by importing SoapUI into Java and running it as a background task. If two different frameworks are integrated, whether this is ...


0

From what I understand from your question, you want to delete the records of the actions you made on your app? This has nothing to do with selenium or testng, you need to have an app for tests only, with a clean DB, that you can delete the records from your actions. Is this helpful?


0

TestNG provide a lot of annotations for thinks like that: @BeforeTest, @BeforeSuite, BeforeGroups and more: http://testng.org/doc/documentation-main.html#annotations It may be look like that: @BeforeTest public void setup() { // open your popup and click on the link } @Test public void test() { // test case } @AfterTest public void tearDown() { ...



Top 50 recent answers are included