How can I use OpenScript to select a link, if another link is not present

Hello

I have a project where the script I'm running has the possibility to select two links (lets call them link A and B a link). When the bed script by default is click the link B, but there are cases where link B is not present and I need a link to be selected instead. How can I define OpenScript to recognize this link B is not present and proceed to the type link A click and continue?

John the Baptist says:
Hello user
You can use the object test or matching text to test to see if the object (link) is there.
You must check the box "Check only, never failed" to avoid an event has failed.
Then you insert an if statement based on the result of the previous action with the "{{result.summary}}" variable equal to WARN (check than the first) or equal to PASS if the criterion of the object of trial or corresponding text was correct or not

Good luck and have fun
JB

I forgot to check if it is functional script... I guess that's

Here is a code that you can use to meet your needs:

beginStep ("Google [1] (/ www.google.com.tr/)", 0 ");
{
Web.Window (2, "/ web:window[@index='0" [or @title =' about: blank'] "")
. Navigate ("http://www.google.com/");
Web.Window (4, "/ web:window[@index='0" or @title = "Google"] "")
.waitForPage (null);
Web
() .link
7,
("[" / web:window[@index='0 "or @title='Google']/web:document[@index='0']/web:a[@text='Google.com in English 'or @href ="http://www.google.com/ncr"or @index = ' 32']")
() .verifyAttributes
'my Test ',.
Web.Attributes (web.attribute ("text",
"Google.com format."
TestOperator.StringExact)));
getVariables () .set ('my State', "{{result.code}}", ")
Variables.Scope.GLOBAL);
Info ("my status: {{status}}");
If (eval ("{{My Status}}") .contains ("WARN")) {}
Info ("click on the link1");
} else {}
Info ("click the Link2");
}
Think (62.494);
Web.Window (16 "/ web:window[@index='0" or @title = "Google"] "")
. Close();
}
endStep();

Tags: Oracle Development

Similar Questions

  • How can I use my photo albums as screensaver with Apple TV 4th gen

    How can I use a photo album that I created as a screensaver on the generation of Apple TV 4 because it is not an option in this sense?

    What follows is the Apple TV 4 user guide...

    Screensavers

    Apple TV displays a screen saver when it remains inactive for a predefined number of minutes.

    Air screensaver shows beautiful videos of slow motion of the places of the world, upload to an online server, making the screen saver more engaging and dynamic. For the antenna, you can control how many times Apple TV check and download new videos.

    Change the frequency of aerial screensaver download. In settings, go to general > screen saver and select Download New Videos, and then select an option.

    Return by using Apple TV. When the screen saver is active, press the contact surface to get to some app have been previously using.

    Choose a different screen saver. In settings, go to general > screen saver and select the Type. Then select the screen saver you want to use.

    Select the photos to display. Many of the screen saver options display a slide show of photos - it can include photos provided by Apple, or your own collection stored in iCloud. To choose which photos are used, in the settings, go to general > screen saver and select the Type. Then choose one of the types of screensaver-photographers.

    If you choose my Photos, the Photos app opens. Follow the instructions to put photos as screensaver.

    Set the screensaver time-out. In settings, go to general > screen saver and select the setting starts after, and then specify a number of minutes. This indicates to the Apple TV to start the screen saver automatically if the unit has been idle for the specified time.

    Activate the screen saver immediately. Press the Home button to go to the home screen (if it isn't already), and then press the button twice.

  • How can I use on my M40X with WinAmp media buttons?

    Hello
    Today, I received my M40X and I have a question.
    There are 5 media as left button on the keybord (CD/DVD, play/pause, Stop, <->)
    Is it possible to use them with WinAmp?
    With the help of Toshiba, I had the CD/DVD button used to start WinAmp (by allows him to launch a .exe) but the work of Play/pause...don´t. The field of media Apps the only player that I can choose is Win MP10 (I hate this piece of sh * t).
    How can I use these buttons with WinAmp?

    Hello

    As far as I know Toshiba controls have been tested and designed only for Microsoft Media Player and WinDVD. How this topic says:

    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=3621&MessageID=11461#11461

    I n t have any experience with WinAmp but I found useful info in this forum on this topic:

    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=6673&MessageID=24448#24448

    Select this check box.

    Good bye

  • How can I do a multiple selection in Enum control or control of the ring or control Combo box

    How can I do a multiple selection in Enum control or control of the ring or control Combo box

    You can not.

    You can use a listbox control.

    An alternative solution is to write the code and each selection, the user gives an enum, for example, can be send to a table and invite the user to continue to select...

  • How can I use HP SureStore to back up my entire drive, including records of other users on the PC?

    How can I use HP SureStore to back up my entire drive, including records of other users on the PC? I have a Windows System 7 and currently, only backups HPSS my file user rather than the rest folders of the users (family members). I do not see where in the feature options where I indicate that I want to include all users in the backup files.

    burtech wrote: How can I use HP SureStore to back up my entire drive, including records of other users on the PC? I have a Windows System 7 and currently, only backups HPSS my file user rather than the rest folders of the users (family members).

    I do not see where in the feature options where I indicate that I want to include all users in the backup files.

    Hello burtech, I wouldn't recommend using the HP backup program or the Windows backup program to backup my system.

    There have been many members who have reported many problems, try to restore the files by using these programs.

    I suggest you to acquire a hard drive image software. These programs can do a mirror image of the hard drive and save it in another location, on a second hard drive or an external hard drive.

    If the system is damaged, just insert a CD in the optical drive and boot the system, select the hard disk image and restore the system as it was when the hard disk images has been created. It takes less than 30 minutes, depending on the speed of your system.

    You would need to make a new hard disk image from time to time, according to the Windows updates or other changes to your system. I usually do one at least every week, or more often if necessary.

    I use Acronis for that purpose, but there are several other very good programs that do the same thing as well.

  • How can I use Windows Defender to scan an individual file in Windows 7?

    How can I use Windows Defender to scan an individual file in Windows 7?

    To the best of my knowledge, it is not possible.

    A cheap substitute, albeit rather inconvenient, is to use a personalized analysis on the folder containing the file of interest.  Go to Windows Defender-> custom scan and then select the folder in the pop up dialog box.

  • How can I use the "fnd_user_pkg.updateuser" package to disable users in bulk?

    Hello

    How can I use the "fnd_user_pkg.updateuser" package to disable users in bulk?

    in EBS R12.1.3, oracle 11g.

    Please see the request for information of the user

    -------------------------------------------------------------------------------------

    SELECT

    SEPARATE

    FU. USER_NAME

    FULL_NAME EMPLOYEE_NAME

    , TO_DATE (LAST_LOGON_DATE, "dd/mm/rrrr") LAST_LOGON_DATE, end_date, FU.start_date

    OF FND_USER FU, PER_ALL_PEOPLE_F PERX

    WHERE 1 = 1

    AND PERX. PERSON_ID = FU. EMPLOYEE_ID

    AND SYSDATE BETWEEN PERX. EFFECTIVE_START_DATE AND PERX. EFFECTIVE_END_DATE

    AND PERSON_TYPE_ID! = 1118 - excluded candidates iRec

    AND LAST_LOGON_DATE < = TO_DATE (December 31, 2012 ', "dd/mm/rrrr") and end_date is null

    ORDER BY TO_DATE (LAST_LOGON_DATE, "dd/mm/rrrr") / / desc

    ------------------------------------------------------------------------------------

    Concerning

    Ngoyi

    Hello

    You need to do the opposite of what the code in the discussion below is:

    fnd_user_pkg. UpdateUser - End Date remove users

    Kind regards

    Bashar

  • Please how can I use a value in a table of the adf in an actionListener to a button I created in a popup and thanks

    Please how can I use a value in a table of the adf in an actionListener to a button I created in a popup and thanks

    What is your version of JDev?

    Actually your question is not clear to me, but as I understand, it is you the table in the page and you have popup inside this popup you have the button you need when you click on the button to read the value of the selected table row. In the listener action button, so if you can get the current row of the table and after that you can get any attribute of the line as:

    DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("TableIteratorName"); // from pageDef.
    Row r = iter.getCurrentRow();
    Object value1 = r.getAttribute("attribute1");
    Object value2 = r.getAttribute("attribute2");
    
  • How can I use statistics for all the tables in a schema in SQL Developer? and how long will it take on average?

    Hello

    How can I use statistics for all the tables in a schema in SQL Developer? and how long will it take on average?

    Thank you

    Jay.

    Select the connection and right-click on it and select schema statistics collection

  • Why are menus grayed out in trial version? How can I use the effects then?

    Why are menus grayed out in trial version? How can I use the effects then?

    Every piece of software has a learning curve and its own terminology.  After Effects is a tool professional complex, used by lovers of the House to feature filmmakers.

    There are a lot of video friendly user very editing software that will do the tasks you mentioned easily.  I would suggest Adobe Premiere Elements.

    For the record, you cannot apply an effect what in After Effects until you have selected a target layer in the timeline panel.  This feature is true for any video editing or compositing software I can think,

  • To delete all tables in TT, how can I use cursor this way Timesten 11?

    Hello
    I want to delete all tables in Timesten, so I create a procedure like this, but it seems does not work correctly.

    It seems cursor in not accurate Timesten with which in ORACLE. So we are looking for alternatives to do. Could you please provide your expert voice on it.

    Thank you very much.

    Like the following:


    Command > create or replace procedure dropAllTables
    > as
    > CURSOR mycursor IS select table_name from user_tables;
    > table_name user_tables.table_name%type;
    > dropSql varchar2 (200);
    > start
    > Open mycursor;
    > fetch mycursor into table_name;
    > while mycursor found %
    > loop
    > dropSql: = 'drop table ' | table_name;
    > immediately execute dropSql;
    > fetch mycursor into table_name;
    > end of loop;
    > close mycursor;
    > end;
    > /.

    Created procedure.

    Command > exec dropAllTables;


    8507: ORA-01001: Invalid cursor
    8507: ORA-06512: at "TT. DROPALLTABLES', line 13
    8507: ORA-06512: at line 1
    The command failed.



    How can I use cursor this way Timesten 11?

    It is the implementation of cursor close commit on in Timesten is the cause.

    As the drop statements are internally auto-valider the transaction so it closes the cursor itself. So when the next time that you attempt to extract it is your "error cursor not valid."

    Can you try this instead

    create or replace procedure dropAllTables
    as
    CURSOR mycursor IS select table_name from user_tables;
    table-name user_tables.table_name%type;
    type t_row_collection is table of the directory index user_tables.table_name%type;
    t_rows t_row_collection;
    dropSql varchar2 (200);
    Start
    Open mycursor;
    Mycursor fetch bulk collect into t_rows;
    Close mycursor;
    j in t_rows.first... loop t_rows. Last
    dropSql: = 'drop table ' | t_rows (j);
    immediately run dropSql;
    end loop;
    end;

  • How can I use SQL/CUBE to figure out total?

    How can I use SQL/CUBE to figure out total?

    Thank you.
    -JC

    Of course, you can do this by using the cube. But cube will produce all the possible combinations of summary. We can filter the unnecessary summariies having clause using the group_id function which is a binary encoding of the columns that are summarized. Below for example, as applied on the table SH.sales.

    Select channel_id, promo_id, prod_id, sum (amount_sold)
    from the sale
    Group of cube (channel_id, promo_id, prod_id)
    having grouping_id (channel_id, promo_id, prod_id) (3, 5, 6, 7)

  • How can I use a headset with Bravia BX300?

    Hello

    How can I use a headset with BRAVIA BX300?

    I inserted the headphones in white audio port on the left side of the TV. I also selected 'audio system' settings.

    But still its not working do not. How to make it work?

    Thank you.

    You can get headphones that connect wireless to the audio output of the TV, a buddy of mine has a game like this, the red/white taken in the transmitter.

  • How can I use the Variance in FR

    Hello

    How can I use the formula of variance in financial reports.

    I have in my grid 2rows


    ColumnA CloumnB Cloumnc
    1 2 4 10 total values
    2 values 1 2 3
    3

    Now I need to include a 3rd place called variance in the how I can do this.

    Please guide me the formula.

    Thank you
    I have w

    Hi, HV,.

    There is a default functions avilable in HFR to calecualate the Variance.

    To do this, you have to select the line formula or the formula column.
    in this column formla, you will be able to set these formulas

    Concerning
    Sri

  • How can I use Windows on the Mac desktop?

    How can I use Windows on MAC desktop products?  OS X El Capitan

    You can install it in BootCamp or virtual VMWare, Parallels or VirtualBox machine

Maybe you are looking for