Goal: checking if the element exists on the page, if so, continue with the test, if it doesn't show an error and stop the test.
Boolean Display = Driver.FindElement(By.CssSelector(".mat - select")).isDisplayed();
Error CS1061 'IWebElement' does not contain a definition for 'isDisplayed' and no accessible extension method 'isDisplayed' accepting a first argument of type 'IWebElement' could be found (are you missing a using directive or an assembly reference?)
Boolean Display = Driver.FindElement(By.CssSelector(".mat - select")).Displayed();
Error CS1955 Non-invocable member 'IWebElement.Displayed' cannot be used like a method.
I will be grateful for your help!
In C# Selenium there is no isDisplayed() method. Also Displayed is a property, not a method.
So instead of
Boolean Display = Driver.FindElement(By.CssSelector(".mat - select")).isDisplayed();
Try using
Boolean Display = Driver.FindElement(By.CssSelector(".mat - select")).Displayed;
Related
I try to display a chart from Microcharts, but I receive this error:
/Users/pizhev/Documents/WeatherLocationInfo 1.6.8/WeatherLocationInfo/MainPage.xaml.cs(27,27): Error CS0234: The type or namespace name 'Entry' does not exist in the namespace 'Microcharts' (are you missing an assembly reference?) (CS0234) (WeatherLocationInfo)
I fallow this link: Tutorial and before two months this method work perfectly.
So when I try to change:
using Entry = Microcharts.Entry;
to
using Entry = Microcharts.ChartEntry;
I receive a many errors like this:
/Users/pizhev/Documents/WeatherLocationInfo 1.6.8/WeatherLocationInfo/MainPage.xaml.cs(243,243): Error CS1503: Argument 2: cannot convert from 'Xamarin.Forms.Entry' to 'Microcharts.ChartEntry' (CS1503) (WeatherLocationInfo)
and this:
/Users/pizhev/Documents/WeatherLocationInfo 1.6.8/WeatherLocationInfo/MainPage.xaml.cs(44,44): Error CS1061: 'ChartEntry' does not contain a definition for 'Text' and no accessible extension method 'Text' accepting a first argument of type 'ChartEntry' could be found (are you missing a using directive or an assembly reference?) (CS1061) (WeatherLocationInfo)
So what is changed in Microcharts and how can I fix this errors ?
I'm trying to get a list of folders and RDL files in those folders on an SSRS 2008 server and I'm getting the following messages when trying to iterate through the folders.
'ReportExecutionService' does not contain a definition for 'ListChildren' and no accessible extension method 'ListChildren' accepting a first argument of type 'ReportExecutionService' could be found (are you missing a using directive or an assembly reference?)
var rs05 = new SSRS2005.ReportExecutionService();
rs05.Url = "http://<servername>/ReportServer/ReportService2005.asmx?wsdl";
rs05.Credentials = System.Net.CredentialCache.DefaultCredentials;
var reports = rs05.ListChildren("/");
I have it exactly as every example out there. Is ListChildren not exposed? Am I missing something?
Here is the code in wpf window that is calling two winform :
(new TWSMIS.Customer.New_CustomerF()).Show();
(new TWSMIS.Voucher.Create_Dv_VouchersF()).Show();
Here project name is "TWSMIS" folder names are "Customer" and "Voucher" respectively .In this code only first line is giving error of :" The type or namespace name 'New_CustomerF' does not exist in the namespace 'TWSMIS.Customer' (are you missing an assembly reference?) C:\Users\SKJ\Documents\Visual Studio 2012\Projects\TWSMIS\TWSMIS\HomePage.xaml.cs" While second line is executing correctly .Can some body tell me how to correct this error?
Note: I am using CR13 with VS 2010.
I am creating winform app.I want to create report dynamically,
I got reference of one of link in which the guy had created report dynamically:
http://www.xtremevbtalk.com/archive/index.php/t-248952.html?
I want same thing but i couldn't. I have create my report's instance as
EmployeeReport empRpt = new EmployeeReport();
then want to add TextObject as like
empRpt.section3.AddTextObject("Print Date: ", 0, 890).
But VS2010 gives me error that:
Error 16 'CrystalDecisions.CrystalReports.Engine.Section' does not
contain a definition for 'AddTextObject' and no extension method
'AddTextObject' accepting a first argument of type
'CrystalDecisions.CrystalReports.Engine.Section' could be found (are
you missing a using directive or an assembly reference?
Any suggestions?
empRpt.Section(3).AddTextObject("Print Date: ", 0, 890")
^here
Hi I want to use applications Settings to retrieve some default properties of my WinForm
and I've also included using WinForm.Properties .
But I get this error
Error 1 'WF_Certificate.Properties.Settings' does not contain a
definition for 'BaudRate' and no extension method 'BaudRate' accepting
a first argument of type 'WF_Certificate.Properties.Settings' could be
found (are you missing a using directive or an assembly
reference?) C:\Users\saadat\Documents\Visual Studio
2012\Projects\WF_Certificate\WF_Certificate\Form1.cs 44 41 WF_Certificate
on this line:cmbBaudRate.Text = settings.BaudRate.ToString();
note : I declared
SerialPort comport = new SerialPort();
and
Settings settings = Settings.Default;
I'm confused . Am I missing something?
If your settings class name is Settings1, then you can use:
cmbBaudRate.Text = Settings1.Default.BaudRate;
You do not need to do anything else. Make sure you have created the BaudRate setting first.