@@ -522,10 +522,6 @@ impl Default for StaticExporterBuilder {
522522impl StaticExporterBuilder {
523523 /// Sets the WebDriver port number.
524524 ///
525- /// # Arguments
526- ///
527- /// * `port` - The port number for the WebDriver server
528- ///
529525 /// # Examples
530526 ///
531527 /// ```rust
@@ -541,10 +537,6 @@ impl StaticExporterBuilder {
541537
542538 /// Sets the WebDriver URL.
543539 ///
544- /// # Arguments
545- ///
546- /// * `url` - The base URL for the WebDriver server (e.g., "http://localhost")
547- ///
548540 /// # Examples
549541 ///
550542 /// ```rust
@@ -560,10 +552,8 @@ impl StaticExporterBuilder {
560552
561553 /// Controls whether to automatically spawn a WebDriver process.
562554 ///
563- /// # Arguments
564- ///
565- /// * `yes` - If `true`, automatically spawns a WebDriver process. If
566- /// `false`, expects an existing WebDriver server to be running.
555+ /// If `true`, automatically spawns a WebDriver process. If `false`,
556+ /// expects an existing WebDriver server to be running.
567557 ///
568558 /// # Examples
569559 ///
@@ -585,10 +575,8 @@ impl StaticExporterBuilder {
585575
586576 /// Controls whether to use offline mode with bundled JavaScript libraries.
587577 ///
588- /// # Arguments
589- ///
590- /// * `yes` - If `true`, uses bundled JavaScript libraries instead of CDN.
591- /// If `false`, downloads libraries from CDN.
578+ /// If `true`, uses bundled JavaScript libraries instead of CDN. If `false`,
579+ /// downloads libraries from CDN.
592580 ///
593581 /// # Examples
594582 ///
@@ -610,11 +598,6 @@ impl StaticExporterBuilder {
610598
611599 /// Sets custom browser capabilities for the WebDriver.
612600 ///
613- /// # Arguments
614- ///
615- /// * `caps` - Vector of browser capability strings (e.g., ["--headless",
616- /// "--no-sandbox"])
617- ///
618601 /// # Examples
619602 ///
620603 /// ```rust
@@ -645,8 +628,6 @@ impl StaticExporterBuilder {
645628 /// - If `spawn_webdriver` is disabled, it creates a connection to an
646629 /// existing WebDriver without spawning
647630 ///
648- /// # Returns
649- ///
650631 /// Returns a `Result<StaticExporter>` where:
651632 /// - `Ok(exporter)` - Successfully created the StaticExporter instance
652633 /// - `Err(e)` - Failed to create the instance (e.g., WebDriver not
@@ -800,18 +781,6 @@ impl StaticExporter {
800781 /// browser and saves the result as an image file in the specified
801782 /// format.
802783 ///
803- /// # Arguments
804- ///
805- /// * `dst` - The destination path for the output file (extension will be
806- /// added automatically)
807- /// * `plot` - The Plotly plot data as a JSON value
808- /// * `format` - The desired output image format
809- /// * `width` - The width of the output image in pixels
810- /// * `height` - The height of the output image in pixels
811- /// * `scale` - The scale factor for the image (1.0 = normal size)
812- ///
813- /// # Returns
814- ///
815784 /// Returns `Ok(())` on success, or an error if the export fails.
816785 ///
817786 /// # Examples
@@ -885,16 +854,6 @@ impl StaticExporter {
885854 /// - SVG: Returns plain SVG text
886855 /// - PNG/JPEG/WEBP/PDF: Returns base64-encoded data
887856 ///
888- /// # Arguments
889- ///
890- /// * `plot` - The Plotly plot data as a JSON value
891- /// * `format` - The desired output image format
892- /// * `width` - The width of the output image in pixels
893- /// * `height` - The height of the output image in pixels
894- /// * `scale` - The scale factor for the image (1.0 = normal size)
895- ///
896- /// # Returns
897- ///
898857 /// Returns the image data as a string on success, or an error if the export
899858 /// fails.
900859 ///
@@ -1120,15 +1079,24 @@ impl StaticExporter {
11201079 Ok ( caps)
11211080 }
11221081
1123- /// Get diagnostic information about the underlying WebDriver process
1082+ /// Get diagnostic information about the underlying WebDriver process.
11241083 ///
11251084 /// This method provides detailed information about the WebDriver process
11261085 /// for debugging purposes, including process status, port information,
11271086 /// and connection details.
11281087 ///
1129- /// # Returns
1088+ /// Returns a string with diagnostic information.
1089+ ///
1090+ /// # Examples
11301091 ///
1131- /// Returns a string with diagnostic information
1092+ /// ```rust
1093+ /// use plotly_static::StaticExporterBuilder;
1094+ ///
1095+ /// let exporter = StaticExporterBuilder::default().build()?;
1096+ /// let diagnostics = exporter.get_webdriver_diagnostics();
1097+ /// println!("{}", diagnostics);
1098+ /// # Ok::<(), Box<dyn std::error::Error>>(())
1099+ /// ```
11321100 pub fn get_webdriver_diagnostics ( & self ) -> String {
11331101 self . webdriver . get_diagnostics ( )
11341102 }
@@ -1348,8 +1316,12 @@ mod tests {
13481316 }
13491317
13501318 #[ test]
1319+ #[ cfg( feature = "chromedriver" ) ]
1320+ // Skip this test for geckodriver as it doesn't support multiple concurrent
1321+ // sessions on the same process as gracefully as chromedriver
13511322 fn test_webdriver_process_reuse ( ) {
13521323 init ( ) ;
1324+
13531325 let test_plot = create_test_plot ( ) ;
13541326
13551327 // Use a unique port to test actual WebDriver process reuse
0 commit comments