{"id":5136,"date":"2015-01-07T14:50:36","date_gmt":"2015-01-07T18:50:36","guid":{"rendered":"http:\/\/www.webperformance.com\/load-testing-tools\/blog\/?p=5136"},"modified":"2017-05-24T15:49:39","modified_gmt":"2017-05-24T19:49:39","slug":"selecting-choice-browser","status":"publish","type":"post","link":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/2015\/01\/selecting-choice-browser\/","title":{"rendered":"Selecting a choice by index or value from a drop-down list in the browser"},"content":{"rendered":"<p>The first release of Web Performance Tester (WPT) with real browser support allow users to select items from a drop-down list (an HTML Select element) based on the text visible to a human user &#8211; just like a real user would do. There are times, however, when choosing based on the position in the list (index) or the hidden value of the selection makes a testcase more robust. This is especially true when the text descriptions of the choices may change due to variations in language, software changes, etc.<\/p>\n<p>Starting with version 6.5, real-browser testcases can be configured to select by the index or the (hidden) value of the choice, as assigned by the underlying HTML code.<\/p>\n<p>Pressing the tools button (wrench icon) shows the choices for the <em>Select option<\/em> step. The default mode (<em>Autodetect&#8230;<\/em>) will correctly select the right choice in most cases, but you can force one of the three selection modes by selecting a choice from that list. Note that testcases upgraded from WPT versions prior to 6.5 will be set to the visible text option, to ensure consistent behavior with those versions.<\/p>\n<p>As always, comment below or <a title=\"Google Chrome 38 Recording Workaround\" href=\"https:\/\/www.webperformance.com\/contact\/\">contact us<\/a> with any questions!<\/p>\n<p>Chris Merrill, Chief Engineer<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The first release of Web Performance Tester (WPT) with real browser support allow users to select items from a drop-down list (an HTML Select element) based on the text visible to a human user &#8211; just like a real user would do. There are times, however, when choosing based on the position in the list (index) or the hidden value of the selection makes a testcase more robust. This is especially true when the text descriptions of the choices may change due to variations in language, software changes, etc.<br \/>\nStarting with version 6.5, real-browser testcases can be configured to select by &hellip; <a href=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/2015\/01\/selecting-choice-browser\/\">Continue reading &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,204,197],"tags":[],"class_list":["post-5136","post","type-post","status-publish","format-standard","hentry","category-load-testing","category-qa-and-functional-testing","category-real-browser"],"_links":{"self":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/posts\/5136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/comments?post=5136"}],"version-history":[{"count":3,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/posts\/5136\/revisions"}],"predecessor-version":[{"id":5840,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/posts\/5136\/revisions\/5840"}],"wp:attachment":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/media?parent=5136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/categories?post=5136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/tags?post=5136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}