Oracle ADF RichSelenium class - any examples on how to use this?

Digging around the net and found that there is a class for Selenium testing ADF Rich components, namely oracle.adf.view.rich.automation.selenium.RichSelenium located in oracle_common\modules\oracle.adf.view_11.1.1\adf-richclient-automation-11.jar.
I've been searching for half a day now and cannot find any example code on how to use RichSelenium class for the life of me.
There are examples of using Selenium with ADF (http://www.oracle.com/technetwork/articles/adf/part6-094560.html) but not using RichSelenium.
Any lead or information would be highly appreciated, thanks in advance.

OK figured out how to start using this RichSelenium class and thought I'd post my findings on this thread for the sake of anyone else who wants to know. Here's my code:
-- START OF CODE
package my.richselenium.test;
import java.util.concurrent.TimeUnit;
import org.junit.After;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriverCommandProcessor;
import org.openqa.selenium.firefox.FirefoxDriver;
* Base test class for handling common functionality across tests - setting up web driver, retrieving URL and cleaning
* up and resources.
public class myTest {
public void runTest() {
// Create WebDriver
WebDriver myWebDriver = new FirefoxDriver();
// Setup Web Driver Command Processor
WebDriverCommandProcessor wdcp = new WebDriverCommandProcessor("http://www.google.com", this.driver);
// Instantiate RichSelenium class object
RichSelenium rs = new RichSelenium(wdcp);
// Load specific URL
rs.open("http://www.oracle.com");
// Let's do some RichSelenium specific processing
String [] someArray = rs.getAllFields();
List<String> someList = Arrays.asList(someArray);
// for loop advance
for (String temp : someList ) {
System.out.println(temp);
rs.close();
-- END OF CODE
-----------------------------------------------------------------------------------------------------------------------------------------

Similar Messages

  • Anybody have any example on how to use javafx.stage.Popup

    I wants to popup an customerize UI stage to let user to something, and found there have a javafx.stage.Popup class. Any example for how to use it, seems it no titile bar and not OK and cancel button? Search for Forum seems don't find an useful one.
    Edited by: 931222 on Oct 22, 2012 8:54 AM

    follow up.

  • Req any examples of how to use a USB midi controller​/keyboards with Labview TIA

    Req any examples of how to use a USB midi controller/keyboards with Labview TIA

    Hi,
    To access the MIDI ports you will need to call the Windows SDK. To send MIDI commands is relatively easy, here is an example that shows you how to send data to a MIDI controller or keyboard.
    As far as input goes, this is the hard part. There are a series of functions that you need to call to open up the device, set some buffers and and possibly a callback to get notifications on the incoming data.
    Reading MIDI data will not be an easy task, your best bet will be to implement this in a DLL and call that DLL in LabVIEW, there should be some code available o the web.
    = "http://msdn.microsoft.com/library/default.asp?url​=/library/en-us/multimed/htm/_win32_multimedia_... is a link to the Windows multimedia functions that you could use for MIDI input.
    Let me know if you have any further questions.
    Regards,
    Juan Carlos
    N.I.

  • Can u  tell me any of you how to use Date class

    Can u tell me any of you how to use Date class. Please send me the source code.

    People won't send you the source code.
    Ask specific questions. You are very vague.
    Tell me how to build.

  • Hi, can any one know how to resolve this error

    Compilation of JSP File '/index.jsp' failed:
    index.jsp:180:16: com.bea.plateng cannot be resolved
    <% if (com.bea.plateng.common.util.RegistryCheck.isComponentInstalled(
    ^------------^

    Please find the lines of the code here.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@ page import="java.util.Locale,
    java.net.URL,
    java.net.HttpURLConnection"%>
    <%
    String url = "http://"+request.getLocalName()+":"+request.getLocalPort();
    Locale currentLocale = request.getLocale();
    String currentLanguage = currentLocale.getLanguage();
    String currentCountry = currentLocale.getCountry();
    if (currentLanguage != Locale.ENGLISH.getLanguage()) {
    try {
    String redirectPath = "";
    if (currentLanguage == Locale.CHINESE.getLanguage()) {
    redirectPath = "index" + "_" + currentLanguage + "_" + currentCountry + ".jsp";
    } else if (currentLanguage == Locale.JAPANESE.getLanguage() ||
    currentLanguage == Locale.KOREAN.getLanguage()) {
    redirectPath ="index" + "_" + currentLanguage + ".jsp";
    } else {
    // Do nothing.
    if (redirectPath != "") {
    URL aURL = new URL("http", request.getLocalName(), request.getLocalPort(), redirectPath);
    HttpURLConnection conn = (HttpURLConnection)aURL.openConnection();
    if (conn.getResponseCode() == HttpURLConnection.HTTP_OK) {
    response.sendRedirect(redirectPath);
    } catch (Exception ex) {
    // Do nothing.
    %>
    <html>
    <head>
    <title>WebLogic Server Examples</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="ootb.css" rel="stylesheet" title="Style" type="text/css" />
    <style type="text/css">
    <!--
    .style1 {font-family: "Courier New", Courier, mono}
    .style2 {font-size: 80%}
    -->
    </style>
    </head>
    <body >
    <!-- header table begin -->
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td background="images/splash_filler_short.gif" width="470">
    <img src="images/splash_server_90_short.gif" width="410" height="153" border="0">
    </td>
    <td width=100% align="left" valign="top" background="images/splash_filler_short.gif" >
    <nobr>
    <p style="text-align:left;color:white; margin-top:95;font-size:120%"> |  Sample Applications, Code Examples, and Test Domain </p>
    </nobr></td>
    <td align="left" valign="bottom">
    <img src="images/spacer.gif" width="1" height="1">
    </td>
    </tr>
    </table>
    <!-- header table end -->
    <!-- Nav Buttons -->
    <table width=100%>
    <tr>
    <td width="50%">
    <nobr>
    <p style="margin-top:2px">
    Getting Started | <strong>Samples</strong> | 
    Fast Track | 
    Documentation | 
    Oracle Technology Network
    </p>
    </td>
    <td width=50% align="right">
    <nobr>
    <p style="margin-top:2px;margin-right:10px;">Controls:
    Start the Administration Console 
    Shut Down Server  
    </p>
    </nobr>
    </td>
    </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="5">
    <tr>
    <td valign="top" width="50%">
    <h3>Try These WebLogic Server Features</h3>
    <p><img src="images/title_line.gif" width="100%" height="4"> </p>
    <h4>EJB 3.0 Persistence</h4>
    <p style="margin-top:2px">These examples show how EJB 3.0 persistence can be used with Java Persistence Architecture (JPA), session EJBs, and asynchronous JavaScript-based Web applications.
    <p><a href="<%=url%>/reviewService/ target="_blank" class="button">Run the example</a>
      |  Instructions </p>
    <hr>
    <h4>HTTP Pub/Sub Server</h4>
    <p style="margin-top:2px">This example demonstrates the usage of the WebLogic HTTP Pub/Sub Server utilizing the Dojo Toolkits which provides the support of Bayeux protocol.</p>
    <p>Run the example
      |  
    Instructions </p>
    <hr>
    <h4>Java Web Service Metadata Annotations</h4>
    <p style="margin-top:2px">This example shows how to create a simple WebLogic Web Service using Java Web Service (JWS) metadata annotations. Metadata annotations are a new JDK 5.0 feature, and the set of annotations used to annotate Web Service files are called JWS annotations. WebLogic Web Services use standard JWS annotations, as defined by the <i>Web Services Metadata for the Java Platform 2.0</i> specification, as well as WebLogic-specific ones for added value.</p>
    <p>Run the example
    Instructions </p>
    <hr>
    <h4>XML: Data Binding Using XML Beans</h4>
    <p>This example illustrates how to use XML Beans to bind data between XML and Java representations of the data. The example uses the <span class="style1">patientSchema.xsd</span> XML schema file as its starting point.</p>
    <p><a href="<%=url%>/xml_xmlBean/xmlBean.jsp target="_blank" class="navbutton">Run the example</a>  |  Instructions</p>
    <hr>
    <h4>EJB 2.1: Basic, Bean-Managed Enterprise JavaBean </h4>
    <p>This example demonstrates how to use an Entity EJB 2.1 to access data using bean-managed persistence.</p>
    <p><a href="<%=url%>/ejb20_beanManaged/EJBeanManagedClient.jsp target="_blank" class="button">Run the example</a>  |  
    Instructions
    </p>
    <hr>
    <h4>JSP: Simple Tags</h4>
    <p>Simple tags are a new JSP 2.0 feature that use a much simpler invocation protocol than do classic tag handlers. Also, simple tag extensions do not rely directly on any servlet APIs, which allows for potential future integration with other technologies.</p>
    <p> <a href="<%=url%>/jsp_simpleTag/SimpleTag.jsp target="_blank" class="button">Run the example</a>  |  
    Instructions
    </p>
    <hr>
    <h4>Servlet: WebLogic Extended annotations</h4>
    <p>This example demonstrates how to use WebLogic extended Servlet annotations @WLFilter and @WLInitParam to configure Servlet and Servlet Filter. By using these annotation, one avoids the need to configure Servlet and Server Filter in the web.xml deployment descriptor file..</p>
    <p> <a href="<%=url%>/ext_servlet_annotations/session target="_blank" class="button">Run the example</a>  |  
    Instructions
    </p>
    <hr>
    <h4>Servlet: AbstractAsyncServlet</h4>
    <p>The implementations of AbstractAsyncServlet can prevent hung threads by decoupling response from incoming request and timing out unresponsive
    requests.</p>
    <p> <a href="<%=url%>/asyncServlet/main.jsp target="_blank" class="button">Run the example</a>  |  
    Instructions
    </p>
    <hr>
    <h4>Database Connectivity: JDBC Rowsets</h4>
    <p>A Java RowSet is an extension of a Java ResultSet. Using a rowset to hold the data rather than a result set minimizes the number of database round trips required to filter and sort the data, and improves application performance. This example demonstrates how to use cached, filtered, and sorted rowsets. </p>
    <p><a href="<%=url%>/jdbc_rowsets/RowSetsServlet target="_blank" class="button">Run the example</a>  |   Instructions </p>
    <hr> <h4>WebLogic Scripting Tool (WLST)</h4>
    <p>The WebLogic Scripting Tool (WLST) is a command-line scripting interface that you use to automate WebLogic Server configurations and deploy applications. These sample scripts demonstrate how to use WLST to configure and manage WebLogic Server instances and domains while connected to a running Administration Server. </p>
    <p>Instructions for running sample scripts</p>
    <p>  </p>
    <p> </p></td>
    <td valign="top" width="50%"><h3>Sample Applications and Code Examples</h3>
    <p><img src="images/title_line.gif" width="100%" height="4"> </p>
    <h4>Test Domain</h4>
    <p>Use the default domain (called wl_server) to try out your own applications!</p>
    <p>You can use the WebLogic Server instance you are running right now to try out your JSPs, servlet or other Java Platform, Enterprise Edition (Java EE) Applications. See the Fast Track Deployment and Administrator Guide.</p>
    <% if (com.bea.plateng.common.util.RegistryCheck.isComponentInstalled(
    "C:/Oracle/Middleware",
    "C:/Oracle/Middleware/wlserver_10.3",
    "WebLogic Server",
    "Server Examples" ) ) { %>
    <h4>WebLogic Server API Examples </h4>
    <p>The API examples demonstrate Java EE and WebLogic Server features. Each example comes with source code, instructions for building and running the examples, and ant scripts to automate the build process. </p>
    <ul>
    <li>View the WebLogic Server API Examples Documentation </li>
    </ul>
    <h4>Avitek Medical Records Sample Application</h4>
    <p> The Avitek Medical Records application is
    an educational tool for all levels of Java EE developers. It
    showcases the use of each Java EE component, and illustrates best practice
    design patterns for component interaction and client development. MedRec also
    illustrates best practices for developing and deploying applications with
    WebLogic Server. Complete source code and documentation is available for
    this application. </p>
    <ul>
    <li>View the Avitek Medical Records Sample Application Documentation</li>
    </ul>
    <p> To launch the Medical Records Application, first shut down the current WebLogic Server instance using the <strong>Shut Down Server </strong>button in the top right corner of this page. Then select <strong>Start Medical Records Ser ver</strong> from the Windows Start-&gt;All Programs-&gt;Oracle WebLogic Products-&gt;WebLogic Server-&gt;Examples-&gt; menu. On UNIX, run the <code>startWebLogic.sh</code> script from the <code><em>MW_HOME</em>/wlserver_10.3/samples/domains/medrec</code> directory, where <code><em>MW_HOME</em></code> is the directory containing your WebLogic Server installation.</p>
    <% }else {%>
    <h4>Additional Examples</h4>
    <p>If you select the option
    to install samples when you install WebLogic Server, you can also access the following examples: </p>
    <ul>
    <li><strong>API examples<br>
    </strong>WebLogic Server API examples demonstrate Java EE and WebLogic Server features. Each example
    comes with source code, instructions for building and running the examples,
    and ant scripts to automate the build process. </li>
    <li><strong>Avitek Medical Records</strong> <strong>sample application </strong><br>
    This application showcases the use of each Java EE component and illustrates best practice
    design patterns for component interaction and client development. Avitek Medical Records also
    illustrates best practices for developing and deploying applications with
    WebLogic Server. Complete source code and documentation is available for
    this application. </li>
    </ul>
    <%} %>
    <h4>Oracle WebLogic Server How Tos, Demos, News, and Community</h4>
    <ul>
    <li>Oracle WebLogic Server Product Information<br>
    Visit Oracle WebLogic Server on the OTN to find articles about WebLogic Server programming, additional code examples, and much more. </li>
    </ul></td>
    </tr>
    </table>
    <!-- FOOTER -->
    <br>
    <p><img src="images/title_line.gif" width="100%" height="4"></p>
    <p>  Copyright &copy; 1996,2009, Oracle and/or its affiliates. All rights
    reserved. <br>
      Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
    <br>  Other names may be trademarks of their respective owners.</p>
    <p> </p>
    </body>
    </html>

  • Example on how to use the NI "saving a front panel img to file" on a prog.

    New to the labview program - I'm trying to save the front panel of the displayed output to file. I downloaded "Panel_Image_to_File.zip" from the NI site. But I'm having problem using the code to our program so as to save the image as a jpeg.
    A simple example on how to use the code or any other code that will be able to save the front panel to a specified folder will be great.

    All you should need is an invoke node of VI class and the the method Get Panel Image. Wire the Image Data output to the Write JPEG File on the Graphics & Sound>Graphics Formats palette. The Invoke Node is on the application Control palette. When it's on the diagram, right click and select Class>VI Server>VI. Right click on it again and select Methods>Get Panel Image.
    Attachments:
    Save to jpg.jpg ‏10 KB

  • Recently when I search for things in the top right search bar in iTunes, the results show up but I cannot click on them. Any ideas on how to fix this?

    Recently when I search for things in the top right search bar in iTunes, the results show up but I cannot click on them. Any ideas on how to fix this?

    Go to this address: http://mycroft.mozdev.org/search-engines.html?country=AU
    Item 24 lists 3 installable major search engines for Australia.
    You can also restrict your search in Google by including ''country:au'' or ''location:au'' or ''city:perth'' (for example) in your search terms. Example: ''city:sydney plumbers'' in the Google search box will list plumbers in cities named sydney.

  • Need an example of how to use java.nio.channels.FileLock

    Hi,
    I need to use the Filelock, but can�t find any examples on how to implement it -
    is it still used in Java 5.0?

    Would this be the correct way to check whether the file is already locked?
    public static void main(String[] args) throws Exception {
         FileOutputStream fos = new FileOutputStream("data.txt");
         FileLock fl = fos.getChannel().tryLock();
         if (fl != null) {
         System.out.println("Locked File");
         Thread.sleep(30000);
         fl.release();
         System.out.println("Released Lock");
         else{
              System.out.println("File is already locked!");
         fos.close();
         }

  • After moving to iCloud I can only get my email through the cloud, no new emails are making it to my home computer. Does anyone have any advice on how to fix this issue?

    After moving to iCloud I can only get my email through the cloud, no new emails are making it to my home computer and .mac account. Does anyone have any advice on how to fix this issue?

    Welcome to the Apple Community.
    Which OS are you using.

  • TS2755 Iphone 4s voice to text messaging has stopped working. Any information on how to correct this?

    Iphone 4s voice to text messaging suddenly stopped working. The little dots that appear while program is preparing to tranfer audio to text shake side to side and no text appear.

    Any ideas on how to fix this problem
    Depends on what the problem is.

  • I have purchased itunes match but the cloud will not load on my ipad 4.the only music that will show up is stuff that i bought from the itunes store.any ideas on how to get this to work?

    i have purchased itunes match but the cloud will not load on my ipad 4.it works on my iphone 5 & it originally worked on my ipad.the only music that will show up is stuff that i bought from the itunes store.any ideas on how to get this to work?

    On the MBP, in iTunes, switch to Song view and enable the iCloud Status column by pulling down View > View options and selecting the option for "iCloud Status." Close the small window. Look for any tracks that have a status of "waiting." If you see several of them disable iTunes Match while holding down the Option key. Quit iTunes, wait a few seconds, then open it again and turn iTM back on. Let it compelete the scan. Wait until all tracks that are "waiting" have a status of either "matched" or "uploaded."
    On the iPad, turn off iTunes Match then launch the Music app and let the contents clear out. Power cycle the iPad for good measure, then re-enable the service once all the tracks in iTunes have been processed.

  • My Iphone 5 won't show up in itunes on my computer? Any idea on how to fix this problem?

    My Iphone 5 won't show up in itunes when i plug it into my windows 8 laptop but it shows up on my computer under devices and drivers as an iphone. Any idea on how to fix this problem so I can use my phone in itunes?

    http://support.apple.com/kb/ts1538

  • My storage is mostly full of a category labeled "other." I'm out of memory to the extent that it won't even allow me to update apps. I have moved all photos over to my computer and my music streams through the cloud. Any advice on how to fix this problem?

    My storage is mostly full of a category labeled "other." I'm out of memory to the extent that it won't even allow me to update apps. I have moved all photos over to my computer and my music streams through the cloud. Any advice on how to fix this problem?

    http://discussions.apple.com/thread/3418045?tstart=60

  • I'm trying to connect my 30" Cinema Display to my new Mac Pro along with a new Apple 23'" monitor.  The new Apple monitor is fine.  On the cinema monitor everything is blown up pretty large.  Any ideas on how to solve this?

    I'm trying to connect my 30" Cinema Display to my new Mac Pro along with a new Apple 23'" monitor.  The new Apple monitor is fine.  On the cinema monitor everything is blown up pretty large.  Any ideas on how to solve this?

    The 30" display needs a DUAL-LINK adapter.
    <http://store.apple.com/us/product/MB571Z/A/mini-displayport-to-dual-link-dvi-ada pter>

  • I have a new Mac Mini and I found AdWare called TakeOverSearchAssetsMac and SearchProjects on it. I have been unable to remove it. Does anyone have any ideas on how to remedy this?

    I have a new Mac Mini and I found AdWare called TakeOverSearchAssetsMac and SearchProjects on it. I have been unable to remove it. Does anyone have any ideas on how to remedy this?

    Please review the options below to determine which method is best to remove the Adware installed on your computer.
    The Easy, safe, effective method:
    http://www.adwaremedic.com/index.php
    If you are comfortable doing manual file removals use the somewhat more difficult method:
    http://support.apple.com/en-us/HT203987
    Also read the articles below to be more prepared for the next time there is an issue on your computer.
    https://discussions.apple.com/docs/DOC-7471
    https://discussions.apple.com/docs/DOC-8071

Maybe you are looking for

  • Collect funding at sales order item level

    Hi all, Is there a FM or BAPI that will allow me to feed in a WBS element to retrieve a list of all sales orders and associated line items. I have a need to sum the funding at the sales order item level. Thanks, Mat

  • How to install Adobe Flash Player mannuly for FireFox protable, when on a limted user acount

    I have Firefox protable. Which is on my 1tb, and so i use it every where. I tryed to update Adobe Flash player on my main home computer, and it. Also on my Nanas computer, when i was there for a week, and i could play games on armor games, but, im he

  • Acrobat X Pro - Header & Footer content ? (web pages)

    We have thousands of Acrobat documents of converted web pages with this convention: Header (L-R): Title - [empty] - Date Footer: URL - [empty] - Page number This convention needs to be retained, but *many* web pages in Internet Explorer 10/11 simply

  • Disaster recovery server

    hi experts i am using SAP Version: ECC 6.0 SR3 Database Version: 10.2.0.4 OS Version: HP-UX B.11.31 i have a server where O/S installed. i want to make this as a disaster Recovery server. now i want to know. 1- what is the man power needed.? 2 -which

  • Edit iCal alerts?

    I have started using Spam Alert and it works extremely well. I have an existing email to: (old address) on my alarms list and want to edit them out so as to be able to use new address that will get through Spam Alert and not go to my spam box. Have s