Ejemplo n.º 1
0
        public void ByType()
        {
            // Text
            FlutterDriver.Click(FlutterBy.Type("FlatButton"));

            AssertCounterIs("-4", because: "we pressed the Add button (Flat Button)");
        }
Ejemplo n.º 2
0
        public void ByType(string inputText, string nodeOutputAsBase64)
        {
            // NodeJs Snippet:
            // console.log(find.byType(null))
            // console.log(find.byType(""))
            // console.log(find.byType(" "))
            // console.log(find.byType("theType"))

            // Output:
            // eyJmaW5kZXJUeXBlIjoiQnlUeXBlIiwidHlwZSI6bnVsbH0
            // eyJmaW5kZXJUeXBlIjoiQnlUeXBlIiwidHlwZSI6IiJ9
            // eyJmaW5kZXJUeXBlIjoiQnlUeXBlIiwidHlwZSI6IiAifQ
            // eyJmaW5kZXJUeXBlIjoiQnlUeXBlIiwidHlwZSI6InRoZVR5cGUifQ
            var asPageBackFinder = FlutterBy.Type(inputText);

            var asBase64 = asPageBackFinder.ToBase64();

            asBase64.Should().Be(nodeOutputAsBase64, because: "the Base64 Serialization should match the NodeJs version");
        }
Ejemplo n.º 3
0
        public void GetSemanticsId_Driver()
        {
            var semanticsId = FlutterDriver.GetSemanticsId(FlutterBy.Type("FlatButton"));

            semanticsId.Should().NotBe(0);
        }