-
Documentation
-
- Browser Cloud: Secure Remote Browser Testing
- Real Mobile Device Cloud: Secure Remote Mobile Testing
- How to get the User Token On TestGrid PlatForm
- Device Reservation
- App Management
- Image Injection for Camera Testing on Real Devices
- BioMetric Authentication
- Object Spy and Searching XPath in Appium Inspector
- Perform Geo-location Testing On TG Cloud
- Running ADB Native Commands with TestGrid Device Cloud
- Push Notification Testing in TestGrid Real Device
- Image Annotation for Marking Bugs with JIRA
- Manual Testing and Test Results with Mobile Screen Recording
- TG Connect: Securely Connect Your Local Environment Using TG Tunnel
- Central Repository for User Recordings Videos
- Configuring PIN on Real Devices in TestGrid
- TG Drive
- Browser resolutions and actions
- Real Devices Access Using Remote Lite URL
- Audio Output Streaming with TestGrid
- Virtual Remote USB Devices (vUSB) with TestGrid
- Device Cloud – Multiple Language Support
- View More Articles (7) Hide Articles
-
- Codeless/Scriptless Web Test Case Writer
- Codeless/Scriptless Mobile App Test Case Writer
- Scriptless Test Case Creation in TestGrid
- Web Test Case Execution
- Mobile App Test Case Execution
- Use Custom Expressions in Scriptless Test Cases with Java (Selenium & Appium)
- Network Assertions: Writing and Execution
- Video Recording for Build Execution in Codeless Testing
- Visual Regression Testing Using Codeless Automation
- Tap action with X and Y coordinates for perform on element Interaction
- Scriptless/Codeless Debugging
- Test Case Version's & Management
- AutoHeal and AutoFix for Codeless Test Automation
- Codeless Integration Testing with Network Assertions
- Using Global Variables in Test Cases and Functions
- Test Data Management with Parameterization in TestGrid
- Parallel Execution on Multiple Devices
- Parallel Execution on Multiple Browsers
- Using Import Statements and Custom Libraries in Versioned Test Suites
- Downloading Codeless Build HTML Reports for Web and Mobile
- Uploading Files for Website Testing via TestGrid TG Drive
- Debugging ‘Test Case Compilation Failed’ Error in TestGrid: Causes & Solutions
- Accessibility Testing
- Test Case Scheduler – Automate Your Codeless Builds
- Test Case Tagging In Codeless/Scriptless and Device Tagging
- Codeless Sequential Test Execution Across Web and Mobile Using APIs
- Test Case Execution on Android Emulators and iOS Simulators Using TestGrid
- View More Articles (12) Hide Articles
-
- Cross-Browser Testing with TestGrid Selenium Using Local Execution
- Accelerate Mobile App Testing with TestGrid Local Appium Execution
- View Execution Results and Reports of Automation Testing
- Local executions with Insights data & Page performance summary metric data
- Visual Regression Testing Using Local Execution
- Executing Your Local Web Automation Robot Code
- Robot Framework for Python: Local Mobile Automation with TestGrid Device Cloud
- Executing Appium Code from Windows Machine to Remote iOS Device
- Download Scriptless Generated Appium Code
- Native App Test on Android
- Native App Test on iOS
- Running Playwright Tests Remotely Using TestGrid
- Cross-Browser E2E Testing Using Cypress on TestGrid
- Dynamic Test Case Execution on TestGrid: Leveraging Random Device Allocation
- Run WebDriverIO Tests Remotely on TestGrid (Mobile & Browser)
- Run CodeceptJS Tests Remotely on TestGrid (Mobile & Browser)
- Best Practices & Troubleshooting Guide for Mobile Local Appium Execution with TestGrid
- View More Articles (2) Hide Articles
-
- PDF Validation with UI
- Validating UI Elements with Database
- Automating Salesforce Application
- Automating Websites with iFrame
- Handling Dynamic Elements with Declare Keyword
- Automating Android Hybrid Apps
- Automating Flutter Application
- Automating APIs with Codeless Automation
- Integrating Selenium Custom Scripts with Codeless Automation
- Integrating Appium Custom Scripts with Codeless Automation
- Vault Test Cases – Integrating HashiCorp Vault with TestGrid Real Devices
- Reading and Auto-Entering OTP on iOS Using Appium in TestGrid
- Reading and Auto-Entering OTP on Android Using Appium in TestGrid
- Data-Driven Testing Using Database Integration in TestGrid Codeless
-
- Jira Integration With TestGrid
- Slack Integration With TestGrid
- Microsoft Teams Integration With TestGrid
- Selenium IDE Integration with TestGrid through Selenium-Side-Runner
- Running Katalon TestCases on TestGrid Mobile Devices
- Running Katalon TestCases on TestGrid Browsers
- Ranorex integration with Testgrid
- Tosca Integration With TestGrid
- Integration of TestComplete by SmartBear with TestGrid
- Bitrise Integration with TestGrid
- Travis CI integration with TestGrid
- 1. CI CD Integration
- 2. Test Suite Management
- 3. Element Extraction from iOS and Android Device
- Scriptless Test Case Creation in TestGrid
- AutoHeal and AutoFix for Codeless Test Automation
- Automation Tips for React Native App Development
- BioMetric Authentication
- Network Assertions: Writing and Execution
- CircleCI Integration With TestGrid
- Cross-Browser E2E Testing Using Cypress on TestGrid
- Dynamic Test Case Execution on TestGrid: Leveraging Random Device Allocation
- Executing Appium Code from Windows Machine to Remote iOS Device
- Cross-Browser Testing with TestGrid Selenium Using Local Execution
- Executing Your Local Web Automation Robot Code
- Image Injection for Camera Testing on Real Devices
- Mobile App Test Case Execution
- Parallel Execution on Multiple Browsers
- Parallel Execution on Multiple Devices
- Performance & Load Testing using JMeter in TestGrid
- Real Devices Access Using Remote Lite URL
- Robot Framework for Python: Local Mobile Automation with TestGrid Device Cloud
- Running Playwright Tests Remotely Using TestGrid
- Codeless Integration Testing with Network Assertions
- Codeless/Scriptless Mobile App Test Case Writer
- Codeless/Scriptless Web Test Case Writer
- Scriptless/Codeless Debugging
- Tap action with X and Y coordinates for perform on element Interaction
- Test Case Version's & Management
- Test Data Management with Parameterization in TestGrid
- Accelerate Mobile App Testing with TestGrid Local Appium Execution
- TG Connect: Securely Connect Your Local Environment Using TG Tunnel
- TG Drive
- Tosca Integration With TestGrid
- Video Recording for Build Execution in Codeless Testing
- Visual Regression Testing Using Local Execution
- Web Test Case Execution
- Run CodeceptJS Tests Remotely on TestGrid (Mobile & Browser)
- Best Practices & Troubleshooting Guide for Mobile Local Appium Execution with TestGrid
- View More Articles (23) Hide Articles
-
-
Test Results
Integrating Appium Custom Scripts with Codeless Automation
Appium Custom Scripts
- Open an existing test case or open a new test case in the codeless generator.
- Select custom expression and add your Java snippet code there.

Android Appium Custom Script:
- For Android, we can write custom scripts in Java using the Appium framework.
- We can use the “driver” object to access all methods of the WebDriver class.
- Following are some examples:
Sample 1
MobileElement passwordEditText = driver.findElement(By.xpath("//android.widget.EditText[@text='Password']"));
passwordEditText.sendKeys("test@123");
Sample 2
MobileElement signInButton = driver.findElement(By.xpath("//android.widget.Button[@text='Sign In']"));
signInButton.click();
Sample 3
try {
HashMap<String, Object> args = new HashMap<>();
args.put("action", "accept"); // accept = click Allow
args.put("buttonLabel", "Allow");
driver.executeScript("mobile: alert", args);
System.out.println("Clicked Allow alert button");
} catch (Exception e) {
throw new RuntimeException("Unable to click Allow button", e);
}
iOS Appium Custom Script
- For iOS we can write custom scripts in Java using the Appium framework.
- We can use the “driver” object to access all methods of the WebDriver class.
- Following are some examples:
Sample 1
MobileElement passwordEditText = driver.findElement(By.xpath("//XCUIElementTypeTextView[@name=’LocationTextView’]"));
passwordEditText.sendKeys("test@123");
Sample 2
JavascriptExecutor js = (JavascriptExecutor) driver;
HashMap<String, Object> swipeObject = new HashMap<>();
swipeObject.put("direction", "up");
js.executeScript("mobile: swipe", swipeObject);
Sample 3
WebElement ele1 = (WebElement) driver.findElementByAccessibilityId("drag_handle1");
WebElement ele2 = (WebElement) driver.findElementByAccessibilityId("drag_handle2");
TouchAction action = new TouchAction((MobileDriver) driver);
action.longPress(ele1).moveTo(ele2).release().perform();
System.out.println("It Is dragging element."
Table of Contents
