Basic To Advanced Selenium Java Full Course - Session 8 - Select Methods in Selenium WebDriver
Selenium WebDriver Commands: getCssValue() - This method fetches css property value of given element getAttribute() - This method gets the value of the given attribute of the element getSize() - This method fetches the width and height of the element getLocation() - This method returns the location of the element on the page manage().window().maximize() - This method will maximize the current browser window manage().window().fullscreen() - This method will change the current browser window to fullscreen manage().window().getPosition() - This method will get the position of current window manage().window().setPosition() - This method will set the position of current window manage().window().setSize() - This method will set the size of current window Select Methods: selectByVisibleText() - This method selects the option which displays the given text deselectByVisibleText() - This method deselects the option which displays the given text selectByIndex() - This method selects the option that matches the given index deselectByIndex() - This method deselects the option that matches the given index selectByValue() - This method selects the option that matches with the given value deselctByValue() -This method deselects the option that matches with the given value getAllSelectedOptions() - This method returns the list of all selected options associated with a select tag getFirstSelectedOption() - This method returns the first selected option associated with select tag deselectAll() - This method deselects all the selected options associated with select tag getOptions() This method returns all the option tags associated with select tag isMultiple() This method tells whether the select element support selecting multiple options at the same time
Download
0 formatsNo download links available.