π» π» Adds a little π ΅ππ ½ to selenium test execution by speaking out all webdriver/webelement actions performed in the tests
<dependency>
<groupId>io.github.sudharsan-selvaraj</groupId>
<artifactId>selenium-audio-logger</artifactId>
<version>1.0.0</version>
</dependency>
implementation group: 'io.github.sudharsan-selvaraj', name: 'selenium-audio-logger', version: '1.0.0'
Also while downloading selenium, make sure to exclude net.bytebuddy:byte-buddy
library by using
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.141.59</version>
<exclusions>
<exclusion>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
</exclusion>
</exclusions>
</dependency>
implementation (group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '3.141.59') {
exclude group: 'net.bytebuddy', module: 'byte-buddy'
}
Initialize the wait plugin using
LogOptions options = new LogOptions();
options.setLogAfterCommand(true);
SeleniumAudioLogger<ChromeDriver> logger = new SeleniumAudioLogger<>(new ChromeDriver(), options);
WebDriver driver = logger.getDriver();
That's it. Now the driver object can be used in the test.
logBeforeCommand
(Boolean) - Whether to log before selenium action is performed. Defaults tofalse
logAfterCommand
(Boolean) - Whether to log after selenium action is performed. Defaults tofalse
logException
(Boolean) - Whether to log if any exception occurred. Defaults totrue
excludedMethods
(List) - List of methods that will be excluded from logging.voice
(Enum) - Available optionsKevin
andKevin16
rate
(float) - Controls the speed of the speech.pitch
(float) - Controls the pitch of the voice.volume
(float) - Controls the volume of the voice.