Closed tahmeednabi closed 2 weeks ago
Does other class name values work for you?
Does other class name values work for you?
No, unfortunately any string I put in the By.ClassName
method gives me the same error
@tahmeednabi
By.ClassName
is a Selenium Selector.
For Appium you should be using: MobileBy.ClassName
Ah, silly me! Thank you!
Description
I am trying to find an element by classname, with code as shown below:
However, I get an error during test run:
For some reason, there is an
[object Object]
interpolated into the string selection. I think this may be a bug in the By.ClassName selector code.Environment
Details
Please provide more details, if necessary.
Code To Reproduce Issue [ Good To Have ]
Please remember that, with sample code; it's easier to reproduce a bug and much faster to fix it. You can git clone https://github.com/appium/sample-code or https://github.com/appium/sample-code/tree/master/sample-code/apps and reproduce an issue using C# and sample apps. Also, you can create a gist with pasted C# code sample or put it here using markdown. About markdown please read Mastering markdown and Writing on GitHub
Exception stack traces
Link to Appium logs
Please create a gist which is a paste of your full Appium logs, and link them here. Do not paste your full Appium logs here, as it will make this issue very long and hard to read! If you are reporting a bug, always include Appium logs as linked gists! It helps to define the problem correctly and clearly.