18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Facing problem with italic button

sujatasujata Members
edited November -1 in Sahi - Open Source
Hi,I am using Sahi testing tool for our application.But in our application in some screens,some combo box are there.So when i create any record,I m getting this for this combo box or drop downs.
click(_italic("z-combobox-btn z-combobox-btn-over"));
when i run the script,it stops at this step.Please if anyone has solution,help me out.
thanks
Sujata

Comments

  • SumitraSumitra Members
    Hi Sujata,

    Ctrl+Hover on the button and check what the Accessor field displays.

    Now replace _italic in click(_italic("z-combobox-btn z-combobox-btn-over")); with one displayed in the Accessor field.

    Regards
    Sumitra
  • sujatasujata Members
    Sorry Sumitra,this also doesn't work.
    Regards
    sujata
  • SumitraSumitra Members
    Hi sujata,

    Can you please post the html source for that element.

    Regards
    Sumitra
  • sujatasujata Members
    <html xmlns="http://www.w3.org/1999/xhtml">;
    <head>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="-1" />
    <title>Patient</title>
  • SumitraSumitra Members
    Hi sujata,

    Use:

    _click(_italic("/z-combobox-rounded-btn/"));

    Regards
    Sumitra
  • sujatasujata Members
    Just now I got Solution and it works.
    _click(_italic("/.*/"));
    Thanks for the reply.
    Regards
    Sujata
This discussion has been closed.