sajal5391's Profile
Train
18
Points

Questions
3

Answers
3

    • 3275 views
    • 8 answers
    • 1 votes
  • Train Asked on August 25, 2014 in Selenium WebDriver.

    Hi Lakshay,

    I have tried that also .. but it is not working as i am unable to find the further xpath after clicking on the item .

    Following is the HTML code of the element , Please help me it this …

    <td title="Search" class="text-button" noWrap="" itemID="emx1323663590559.1252">
     Text - Search
     <img align="absMiddle" src="http://lgepdm.lge.com/ematrix/common/images/utilNavMenuArrow.gif" border="0"/>
    

    For selecting the element . i have used the following xpath :-

    "//td[@title='Search']"
    
    and it is working fine . But now i am unable to find the xpath of options inside it as the options are called by javascript and it id not present in HTML code .

    Javascript code of the item , i want to click is : –

    var currentToolbarObj = eval(objMainToolbar);
     var ENCCreatePartActionsmxcommandcode = eval();
     tempMenuItem = new emxUIToolbarMenuItem(emxUIToolbar.TEXT_ONLY, "", "Part...", "javascript:showNonModalDialog(\"/ematrix/item/part/CreatePartFirstPage.pdm\",\"924\",\"668\",true )","popup", "", "ENCCreatePartActions","Part...", "toolbar", "924","668", "EngineeringCentral", true,"","","ENCCreatePartActions");tempMenuItem.setMode("");tempMenuItem.setRMB("false");objMenu.setRMB("false");objMenu.addItem
    (tempMenuItem,false);

    PLEASE TELL ME WHAT TO DO NOW … ITS BEING LIKE A BLOCKER FOR ME ..

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

    Hi Vaidy ,

    There also everywhere they are using Select class for solving the problem , but here Select class will not work as the element is in td tag . Its html code is as follows : –

    <td title=”Search” class=”text-button” noWrap=”” itemID=”emx392066584685.918″>

    The error i am getting after using Select class is as follows:-

    WebElement should be Select but was td.

    Is there any other way which does not use Select class and will perform this  action .

    Regards .
    Sajal

    • 3275 views
    • 8 answers
    • 1 votes