1

While selecting the dropdown values, select method works with all input parameters like options, values and index. But when I try to validate it, the default selected value is diaplayed instead of the selected one.

I tried getting help from the below question but still the things are same.

Karate UI: Selected option not applied on next page

For me the values are present in select tag only and i troed writing specific locator for the value and clicking it.. Still it's not taling up the updated values. Any other method which we can use or any other way of implementing it will be helpful.

Uncle Sam
  • 255
  • 3
  • 11
  • sorry can't help you without ANY info. follow this process (if you can): https://github.com/intuit/karate/tree/develop/examples/ui-test – Peter Thomas Mar 25 '21 at 08:44
  • Hi Peter, same thing is happening in my case also. Like in a web form to update user data where input and dropdown options will be there. Data entered in textbox with are saving when user click on save. In case of – ex-ninja Mar 25 '21 at 09:37
  • @PeterThomas mouse().move('locator').submit() worked for me in this case.. But its taking much time considerably, 30 seconds at each dropdown would prove costly. Select was not working so I tried combination of mouse().move('locator').submit() and input(), any way I can reduce the time taken by these operations? – Uncle Sam Mar 26 '21 at 04:33
  • this is an area I expect you to have some respect for the developers of the framework, provide more data, contribute and make karate better, does that make sense ? every web app is different. there can be all kinds of JS involved that you CANNOT explain by questions like these. it is up to you how you want to proceed. – Peter Thomas Mar 26 '21 at 05:15
  • Appreciate the efforts! Thanks – Uncle Sam Mar 26 '21 at 06:09

0 Answers0