Skip to main content

All Questions

Tagged with
0 votes
1 answer
293 views

Selenium (java) problem with elements which are not in focus

I'm new to this and have following problem: I want to choose one option from following drop down menu: screenshot of the dropdown menu This drop down menu is out of sight of the page, meaning you ...
DasDouble's user avatar
0 votes
2 answers
64 views

How do I create a drop down menu and make contents drop?

I'm having issues creating a dropdown menu using the a tag. I'm not sure why, but the drop down menu isn't working at all/doesn't seem to register. When the dropdown menu shows, I would like it to ...
Kevin 's user avatar
  • 37
1 vote
0 answers
265 views

Creating a dropdown navbar using JavaServer Pages (jsp)

I am trying to create a dropdown menu navbar using jsp, from the following 3D array. String[][][] navabr = new String[][][] { {{"pageA"}, {"page1",...
Tinovimba Mawoyo's user avatar
1 vote
1 answer
2k views

How to use foreach loop inside of dropdownlist?

I want to iterate through an array with a foreach loop in a jsp (welcome.jsp) file and want to put "project names" in a dropdown list. But the code doesn't work. <!-- dropdown menu --> <...
Maximilian K's user avatar
0 votes
1 answer
54 views

Change the function of a button based on drop down value in Angular

I am currently generating a License Key based on the input from the user and passing to my Java code. The code to generate key is: @PostMapping("/generate") public License generateLicense(@...
Karan Saxena's user avatar
1 vote
2 answers
981 views

Selenium Webdriver with Java - Click on an hyperlinked Dropdown Container

I need to click on an element inside a Dropdown container. I've tried several searchs but I haven't been able to find the correct solution. The select method doesn't work, and I still don't know how ...
Francisco Maldonado's user avatar
0 votes
0 answers
195 views

Including JSP expression inside value of html opion tag

I am trying to dynamically show options in an html select element, using jsp. The code that follows isn't working though, and i am not sure as to why: <select class="form-control" name="department"...
Marios's user avatar
  • 51
1 vote
1 answer
177 views

Selenium finding a select dropdown

I am working on a test but I cant see to be able to find a drop-down menu on the page. I have been able to identify most of the the other elements on the page. For one button I had to implement a ...
tarquin's user avatar
  • 137
0 votes
1 answer
1k views

Unable to Select From Dropdown By Index in Selenium and Java

I understand how to Select an element from dropdown using selectByIndex method. Howeverwhen I try to perform selectByIndex ( select.selectByIndex (index) ) on the following HTML snippet: <select ...
ee clipse's user avatar
  • 245
0 votes
1 answer
3k views

display data from servlet to drop down menu jsp

I am trying to avoid java codes in jsp for drop down menu. i dont know if my codes are correct in the first place (i bet there are other errors) BUT my real problem is, i dont know how to allow drop ...
Mong2203's user avatar
0 votes
0 answers
859 views

Passing data to dropdownlist, java spring mvc

I would like to add some data such as merchant name into database.I wanted it to be retrieved from a dropdownlist or combo box.For example,i added 7-eleven as merchant name into database,from another ...
Ah Hiang's user avatar
  • 592
0 votes
1 answer
127 views

Need help creating a drop down button with Java

I am fairly new to programming in Java. Currently I am trying to create a button that when clicked will produce a drop down. For example, you have a user input field that does a google type rolling ...
zombie dude 789's user avatar
1 vote
2 answers
4k views

How to add checkbox for each dropdown list element in jsp

I wanted to select several items from dropdown list by using checkboxes. <div multiple size="2" id="-"> <select name="-" class="-" id="-" multiple> <option value="<s:property ...
knowledge flow's user avatar
1 vote
1 answer
6k views

Unable to attach <p:ajax> to non-ClientBehaviorHolder parent

Im trying to call a function on selection of a value from dropdown. Heres my code: <h:form id="frmUpload" enctype="multipart/form-data"> <p:column><h:outputText value="Select ...
user3176971's user avatar
4 votes
2 answers
17k views

How to keep selected value in dropdown box after form submission? [duplicate]

Out of the many solutions I've found, I can't seem to get any of them to work for me. I've got a dropdown list in my jsp file: <select name="chosenOne" onchange="javascript:getUsers(this.value)...
user avatar

15 30 50 per page