automatetheplanet / automatetheplanet-learning-series Goto Github PK
View Code? Open in Web Editor NEWAutomate The Planet Series Source Code
License: Apache License 2.0
Automate The Planet Series Source Code
License: Apache License 2.0
string response = (string)js.ExecuteScript ("return (typeof canvasImgContentDecoded === 'undefined' || canvasImgContentDecoded === null)");
ERROR:
Additional information:
Can not convert an object of type 'System.Boolean' to type 'System.String'.
First, thanks for such a vastly rich resources, @angelovstanton !
Persistent issue is in this part:
`
public override string Url => @"http://www.bing.com/";
public void Search(string textToType)
{
SearchBox.Clear();
SearchBox.SendKeys(textToType);
GoButton.Click();
}
`
Go Button does not become clickable as Click() throws
Result Message:
Test method HuddlePageObjectsElementsStringProperties.BingTests.UseApp_SearchTextInBing_UseElementsDirectly threw exception:
OpenQA.Selenium.ElementNotInteractableException: Element input id="sb_form_go" name="search" type="submit" could not be scrolled into view
Tried a few precautions before GoButton.Click(); like
var wait = new WebDriverWait(WrappedDriver, TimeSpan.FromSeconds(8)); wait.Until(ExpectedConditions.ElementExists(By.Id("sb_form_go"))); wait.Until(ExpectedConditions.ElementToBeClickable(By.Id("sb_form_go")));
while ElementExists condition is true, the ElementToBeClickable is never met.
Attached is packages.config.txt
I'd appreciate any advice!
If I want to follow the links in the readme section of your Java guide, both links are wrong.
https://github.com/AutomateThePlanet/AutomateThePlanet-Learning-Series#java-series
new WebdriverWait cant be use
Tried, without success
public static T WaitUntil<T>(this IDriver driver, Func<IDriver, T> condition, TimeSpan timeout)
{
var wait = new DefaultWait<IDriver>(driver)
{
Timeout = timeout
};
return wait.Until(condition);
}
I am getting following error :
Class Initialization method GettingStartedAppiumIOSMacOS.AppiumTests.ClassInitialize threw exception. OpenQA.Selenium.WebDriverException: OpenQA.Selenium.WebDriverException: A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://0.0.0.0:4723/wd/hub/session. The status of the exception was UnknownError, and the message was: IPv4 address 0.0.0.0 and IPv6 address ::0 are unspecified addresses that cannot be used as a target address.
Parameter name: hostName IPv4 address 0.0.0.0 and IPv6 address ::0 are unspecified addresses that cannot be used as a target address.
Parameter name: hostName ---> System.Net.WebException: IPv4 address 0.0.0.0 and IPv6 address ::0 are unspecified addresses that cannot be used as a target address.
Parameter name: hostName IPv4 address 0.0.0.0 and IPv6 address ::0 are unspecified addresses that cannot be used as a target address.
Parameter name: hostName ---> System.Net.Http.HttpRequestException: IPv4 address 0.0.0.0 and IPv6 address ::0 are unspecified addresses that cannot be used as a target address.
Parameter name: hostName ---> System.ArgumentException: IPv4 address 0.0.0.0 and IPv6 address ::0 are unspecified addresses that cannot be used as a target address.
Parameter name: hostName.
i downloaded your appium sample for c# android and i'm getting these errors. googling doesn't reveal a quick solution. i think it is due to me upgrading the project to the latest version of all nuget packages. Although you haven't mentioned anything about that on your article
'DesiredCapabilities.DesiredCapabilities()' is obsolete: 'Use of DesiredCapabilities has been deprecated in favor of browser-specific Options classes' GettingStartedAppiumAndroidWindows D:\VSProjects\Appium-Series\Appium-Series\GettingStartedAppiumAndroidWindowsCSharp\AppiumTests.cs
on
var desiredCaps = new DesiredCapabilities();
desiredCaps.SetCapability(MobileCapabilityType.DeviceName, "Android_Accelerated_x86_Oreo");
desiredCaps.SetCapability(AndroidMobileCapabilityType.AppPackage, "io.appium.android.apis");
desiredCaps.SetCapability(MobileCapabilityType.PlatformName, "Android");
desiredCaps.SetCapability(MobileCapabilityType.PlatformVersion, "7.1");
desiredCaps.SetCapability(AndroidMobileCapabilityType.AppActivity, ".ApiDemos");
desiredCaps.SetCapability(MobileCapabilityType.App, testAppPath);
Argument 1: cannot convert from 'OpenQA.Selenium.Appium.Service.AppiumLocalService' to 'OpenQA.Selenium.Remote.ICommandExecutor' GettingStartedAppiumAndroidWindows D:\VSProjects\Appium-Series\Appium-Series\GettingStartedAppiumAndroidWindowsCSharp\AppiumTests.cs
and
Error CS1503 Argument 2: cannot convert from 'OpenQA.Selenium.Remote.DesiredCapabilities' to 'OpenQA.Selenium.DriverOptions' GettingStartedAppiumAndroidWindows D:\VSProjects\Appium-Series\Appium-Series\GettingStartedAppiumAndroidWindowsCSharp\AppiumTests.cs
on
_driver = new AndroidDriver<AndroidElement>(_appiumLocalService, desiredCaps);
There are multiple issues like this, should i just use the bundled package versions? is there no support on newer versions of appium?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.