Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 486976

Summary: Facing blocking error in the Luna version 2 (4.4.2) when automating selenium code for select item from drop down menu.
Product: [Eclipse Project] JDT Reporter: Sahida Sultana <ssultana>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, jarthana, markus.kell.r, stephan.herrmann
Version: 4.4.2   
Target Milestone: 4.6 M6   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
I have attached screenshot where displaying error (Marked as red) in the automated selenium code for select item. none

Description Sahida Sultana CLA 2016-02-02 02:54:35 EST
Created attachment 259482 [details]
I have attached screenshot where displaying error (Marked as red) in the automated selenium code for select item.

Good Afternoon,

I am facing blocking issue in the Eclipse when automating Selenium scripts and Version: Luna Service Release 2 (4.4.2).Step is given

Step 1:Created Xav Internal Project Folder.
Step 2: Created pageObject Package under src folder.
Step 3: Created Class for Process_Enhancement
Step 4: Automated one function (given below)

//Selection of Year
    public static void Sel_Year(int rowNum)throws Exception{
    try{
    int colyear=ExcelUtils.getColumnContains("Year");
    String Year=ExcelUtils.getCellData(rowNum, colyear);
    Select sel=new Select(driver.findElement(By.id("ddlYearPending")));     //Marked as red cross in eclipse
    Log.info("Year drop down box found in the Encashment Approval Page");
    sel.SelectByVisibleText(Year);	                                                               ////Marked as red cross in eclipse	
    }catch (Exception e){
    Log.error("Year drop down box is not found in the Encashment Approval Page");
    ExcelUtils.MsgFailure_setCellData("Fail", "Year Drop down Box Should found in the Encashment Approval Page", "Year drop down box is not found in the Encashment Approval page", rowNum);
    Assert.fail("Year drop Down box not found");
    throw(e);
    }
}

Step 5: Above code which is given in Step4 that is correct but displaying error in the Eclipse(marked as Red).

Expected Result: Any Error message should not display for Step 4 code.
Actual Result:Error Message displaying for Step 4 code.
Comment 1 Stephan Herrmann CLA 2016-02-02 07:13:52 EST
To figure out whether this is a bug in JDT we'd need more information, like:
- what are the error messages associated to the markers in the editor?
- what is class "Select"?
  - is it properly imported?
  - what's the signature of the constructor?
  - what's the signature of method SelectByVisibleText?
Comment 2 Markus Keller CLA 2016-02-02 08:08:08 EST
Probably a setup problem, not a compiler bug. Reducing severity.
Comment 3 Sahida Sultana CLA 2016-02-19 02:25:19 EST
Now We are not working on Selenium Eclipse.so, Closed the Defect.
but if we face any issue in future then we will Reopen the defect.
Comment 4 Stephan Herrmann CLA 2016-02-19 09:21:48 EST
Adjusting bug resolution since nothing has been fixed in JDT (and hence nothing can be verified).
Comment 5 Sahida Sultana CLA 2016-02-22 04:18:04 EST
I am doing Some RND in Selenium Eclipse Automation Project.but still facing Same issue.so, Reopen the ticket.
Comment 6 Jay Arthanareeswaran CLA 2016-02-22 09:08:46 EST
(In reply to Sahida Sultana from comment #5)
> I am doing Some RND in Selenium Eclipse Automation Project.but still facing
> Same issue.so, Reopen the ticket.

It would help if you bother to answer Stephan's questions from comment #1. There's nothing we can do to fix this until you can provide us more information.
Comment 7 Sahida Sultana CLA 2016-02-24 03:07:31 EST
Now it's working fine.so, closing the defect.
Comment 8 Stephan Herrmann CLA 2016-02-24 10:52:58 EST
Changing resolution to document that nothing has been changed in JDT.
Comment 9 Stephan Herrmann CLA 2016-04-07 10:21:20 EDT
(In reply to Stephan Herrmann from comment #8)
> Changing resolution to document that nothing has been changed in JDT.

again! Please stop interfering with our house keeping.