Skip to content

Commit b2a2c3a

Browse files
authored
Merge pull request LambdaTest#2267 from sakshamarora-arch/stage
Updated documentation
2 parents 3c7263a + 78eb0d5 commit b2a2c3a

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

docs/audio-injection.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,20 +105,11 @@ desired_caps = {
105105
## Step 3: Control Audio in Test
106106
Inject the uploaded audio file from LambdaTest into the recorder or app when you are at the dedicated space for microphone input.
107107

108-
**Inject / Replace File**
108+
**Inject File**
109109
```python
110-
driver.execute_script('lambda-audio: {"action":"inject","arguments":{"media_url":"lt://MEDIA123..."}}')
110+
driver.execute_script("lambda-audio-injection=lt://MEDIA123...")
111111
```
112112

113-
**Start Audio**
114-
```python
115-
driver.execute_script('lambda-audio: {"action":"start"}')
116-
```
117-
118-
**Stop Audio**
119-
```python
120-
driver.execute_script('lambda-audio: {"action":"stop"}')
121-
```
122113
:::note
123114
The injected audio can come from a standalone audio file **or** from the audio track of a recorded video.
124115
:::

docs/regular-expression-appium.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,18 @@ import VirtualDeviceTag from '../src/component/virtualDevice';
4444
}}
4545
></script>
4646

47-
<RealDeviceTag value="Real Device" /> <VirtualDeviceTag value="Virtual Device" />
47+
<RealDeviceTag value="Real Device" />
4848

4949
Regular Expressions (RegEx) are powerful tools for searching and manipulating strings. When running tests on LambdaTest with a specific device, there may be times when the exact device you selected isn't available. In such cases, RegEx will help you widen your search criteria to find any available device that matches your requirements.
5050

51+
5152
LambdaTest provides RegEx support for both **deviceName** and **platformVersion**, making it easier to find the right devices for your tests.
5253

54+
:::info
55+
**Note:** Regular Expression support is currently available **only for App Automation**.
56+
It is **not supported for Web Automation on Virtual Devices** at this time.
57+
:::
58+
5359
## Why Use RegEx?
5460

5561
Imagine you want to run a test on an iPhone. You don't need a specific model, just any iPhone. Using **RegEx**, you can specify this requirement, and LambdaTest will allocate any available iPhone. This flexibility can significantly broaden the search and increase the chances of finding a suitable device quickly.

0 commit comments

Comments
 (0)