Table of contents

Contents



Official Content

All the test preferences that can be set on your KB and environments have an associated setter method in the GXtest webdriver that is used before each test execution. This means you can override the value set in the KB properties in any test by just adding one of the following commands in it.

SetArguments

Official documentation page: SetArguments command

SetBaseURL

Official documentation page: SetBaseURL command

SetBrowser

Official documentation page: SetBrowser command

SetLogLevel

SetLogLevel_Command_png

Sets the web UI tests' verbosity level at execution time.  

Parameters:

Example of use:

&driver.SetLogLevel("Debug")
&driver.SetLogLevel("Warn")

SetFileUploadBasePath

Official documentation page: SetFileUploadBasePath command

SetFullPageScreenshot

SetFullPageScreenshot_Command_png

Sets the default type of screenshot GXtest takes. Visit FullPageScreenshot property for more details.

Parameters:

  • Value: the value indicating if the page screenshots are full (true) or not (false). 

Example of use:

&driver.SetFullPageScreenshot(true)

SetHtmlMode

SetHTMLMode_Command_png

Sets the situations in which the page HTML must be saved. 

Parameters: 

Example of use:

&driver.SetHTMLMode("OnVerifyAndError")
&driver.SetHTMLMode("Never")

SetScreenshotMode

SetScreenshotMode_Command_png

Sets the situations in which a page screenshot must be saved. 

Parameters: 

Example of use:

&driver.SetScreenshotMode("OnError")
&driver.SetScreenshotMode("Always")

SetVerifyStopsExecution

Official documentation page: SetVerifyStopsExecution

 

Last update: November 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant