Elements Archives

Disabling Form Elements in Moodle/Totara

Author - Pawandeep Kaur

Here we will discuss how to disable form elements based on conditions in moodle/totara.

We are creating a form in moodle/totara by extending “moodleform” class and overriding the definition() method to including the form elements.

For example:

If you want to disable any checkbox Read more…

XPath for Selenium Webdriver

Author - Shivam Thaman


XPath in simple terms is a way of finding an element(s) in an HTML DOM by giving its path. It is useful when name or id etc is not available to be directly used to find the element. The path given can be either Absolute or Read more…

Get the List of Elements in Selenium Script

Author - Manpreet Singh

How to Get the List of Elements in Selenium Script?

List is the collection of similar type of data. You can add, remove, iterate over stuff and can also query how much data is in the List.

Java.util.List is a child interface of Collection Read more…