Skip to content

Commit

Permalink
drop clipSelector on docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerem Beygo committed Aug 30, 2024
1 parent c2894e7 commit 9248bb3
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 45 deletions.
2 changes: 1 addition & 1 deletion docs/visual-testing/_partials/_clipping-description.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
You can clip to a specific element on the page by using the `clipSelector` option when calling Sauce visual.
You can clip to a specific element on the page by using the `clipElement` option when calling Sauce visual.

Notes:

Expand Down
1 change: 0 additions & 1 deletion docs/visual-testing/_partials/_clipping-element.md

This file was deleted.

12 changes: 0 additions & 12 deletions docs/visual-testing/_partials/_clipping-webdriver.md

This file was deleted.

12 changes: 0 additions & 12 deletions docs/visual-testing/integrations/csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,18 +449,6 @@ await VisualClient.VisualCheck("C# full page config",

Example:

```csharp
await VisualClient.VisualCheck("Visible Sale Banner",
new VisualCheckOptions()
{
ClipSelector = ".your-css-selector",
});
```

<ClippingElement />

Example:

```csharp
var element = Driver.FindElementByCssSelector(".your-css-selector");
await VisualClient.VisualCheck("Visible Sale Banner",
Expand Down
17 changes: 2 additions & 15 deletions docs/visual-testing/integrations/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,18 +444,6 @@ visual.sauceVisualCheck("Long content page", options);

Example:

```java
import com.saucelabs.visual.CheckOptions;

CheckOptions options = new CheckOptions();
options.setClipSelector(".your-css-selector");
visual.sauceVisualCheck("Visible Sale Banner", options);
```

<ClippingElement />

Example:

```java
import com.saucelabs.visual.CheckOptions;
import org.openqa.selenium.By;
Expand All @@ -465,10 +453,9 @@ import org.openqa.selenium.remote.RemoteWebDriver;
RemoteWebDriver driver;
...

CheckOptions options = new CheckOptions();
WebElement element = driver.findElement(By.cssSelector(".your-css-selector"));
options.setClipElement(element);
visual.sauceVisualCheck("Visible Sale Banner", options);
visual.sauceVisualCheck(
"Visible Sale Banner", new CheckOptions.Builder().withClipElement(element).build());
```

## Examples
Expand Down
2 changes: 0 additions & 2 deletions docs/visual-testing/integrations/nightwatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,6 @@ browser
### Clip to an Element
<ClippingWDIO />
<ClippingElement />
Example:
Expand Down
2 changes: 0 additions & 2 deletions docs/visual-testing/integrations/webdriverio.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,6 @@ browser.sauceVisualCheck('Before Login', {

### Clip to an Element

<ClippingWDIO />

<ClippingElement />

Example:
Expand Down

0 comments on commit 9248bb3

Please sign in to comment.