“Unknown method: Not implemented yet for find” in Flutter app automation using appium webdriverIO

For Flutter app, we are using

  • appium-flutter-finder and appium-flutter-driver
  • webdriverIO framework using Typescript

Scenario:

  • Login page: Username and password, click on login button
  • Redirected to home page and a dialog is displayed where the user need to click on option Got it!

Issue:

  • During the execution, I’m able to see the dialog with the Got it! option but the option is not clicked
  • To click on the option, using the below logic:
const gotITButtonLocator = byText('Got it!');
const element = driver.$(gotITButtonLocator);
await element.click();

Terminal logs:

ERROR webdriver: Request failed with status 405 due to unknown method: Not implemented yet for find.
[0-0] unknown method in "My Driver Dashboard.should login with valid credentials and Click on Got it"
unknown method: Not implemented yet for find.
    at Context.<anonymous> (/Users/prabhakary/Documents/Ziing/Mobile/VSCODE/mobile-e2e-test/tests
/shared/specs/driver/test_driver.e2e.ts:66:9)

Appium server logs:

[f3380dda][FlutterDriver@bade] Encountered internal error running command:NotImplementedError: Not implemented yet for find.

I kindly requesting for help on this scenario:

import { expect, driver, $ } from "@wdio/globals";
import { selectors } from "../../../../helpers/selectors.ts";
import { pause } from "../../../../helpers/utilities.ts";
import { byText, byValueKey } from "appium-flutter-finder";

const dotenv = require("dotenv");
const loginPage = require('../../../shared/pageObjects/login.page.ts');
const env = process.env.TEST_ENV || "demo";
dotenv.config({ path: `env/.env.${env}` });

describe("My Driver Dashboard", () => {
    beforeEach(async () => {});

    it("should find and click the OK button", async () => {
        await pause(3000);
        const buttonText = await driver.getElementText(selectors.continueButton);
        if (buttonText === "OK") {
            console.log("OK button is displayed. Clicking the OK button...");
            await driver.elementClick(selectors.continueButton);
        } else {
            console.log("OK button is not displayed.");
        }
    });

    it("should login with valid credentials and Click on Got it", async () => {
        const email = process.env.EMAIL;
        const password = process.env.PASSWORD;

        // Accept the permissions
        await loginPage.loginFlow(email, password);
        console.log('Login completed..Checking for the "Got it" button.');

        await pause(10000);

        // Click the "Got it" button
        const gotITButtonLocator = byText('Got it!');
        await pause(10000);
        console.log('********** "Got it" TEXT. **********', gotITButtonLocator);
        const element = driver.$(gotITButtonLocator);
        await element.click();
        await pause(10000);
    });
});

Below is the source code snippet for flutter

      if (!approvedShowOnce) {
        showDialog(
          context: context,
          builder: (BuildContext context) {
            return const OkCancelPopup(
              popupTitle: DASHBOARD_DIALOG_APPROVED_TITLE,
              popupContent: DASHBOARD_DIALOG_APPROVED_CONTENT,
              okButtonText: DASHBOARD_DIALOG_GOT_BUTTON,
              cancelButtonText: null,
              okHandler: null,
              cancelHandler: null,
            );
          },
        );

The DASHBOARD_DIALOG_GOT_BUTTON ,

const DASHBOARD_DIALOG_GOT_BUTTON = 'Got it!';

1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật