XCODE 8 xcuitest code generation compilation error - xctest

I have downloaded the xcode 8, and tried to record a test in xcuitest
but the generated code by xcode gives compilation error
Generated code
window.tables.children(matching: .tableRow).element(boundBy: 0).children(matching: .cell).element(boundBy: 5).click()
Error
but it is giving compilation error like Value of type
'XCUIElementQuery' has no member ‘containing’
'XCUIElementQuery' has no member ‘ children’
'XCUIElementQuery' has no member ‘ matching’
'XCUIElementQuery' has no member ‘ element'
also .other should be changed to .Other
.cell should be changed to .Cell to fix the error
i selected swift 2.3 while installing xcode 8
Any help appreciated

It looks like the code generator migrated to a new sytnax for the call to the children, but not the code interpreter. Replace .children(matching: .cell) with childrenMatchingType(.Cell)

Related

Getting an Error:(22, 20) Kotlin: Unresolved reference: string error when adding the string command

I'm getting this error Error:(22, 20) Kotlin: Unresolved reference: string when I add some code to my learnign program I made in Intellij It runs ok until I add the string command then I get the error above.I have installed jdk-11.0.3_windows-x64_bin with ideaIC-2019.1.3.exe but not sure if this is the correct SDK to use? Or if this is causin the issues?
var department:string?
department = null
department ="software Engineering"
println ("department ${department}")
Information:Kotlin: kotlinc-jvm 1.3.40 (JRE 11.0.3+12-LTS)
Information:Module "Varibles" was fully rebuilt due to project configuration/dependencies changes
Information:03/07/2019 16:20 - Build completed with 1 error and 0
warnings in 2 s 534 ms
C:\Users\lanca\IdeaProjects\Varibles\src\DataTypes.kt
Error:Error:line (22)Kotlin: Unresolved reference: string
Thanks #forpas this fixed the issue!

T4MVCVB doesn't work on clean install?

I just installed T4MVCVB and it won't compile:
Error 1 Compiling transformation: Invalid token 'this' in class, struct, or interface member declaration c:\...\T4MVCVB.tt 1 1
Error 2 Compiling transformation: Method must have a return type c:\...\T4MVCVB.tt 1 6
Error 3 Compiling transformation: Type expected c:\...\T4MVCVB.tt 1 12
Note that the line number is 1 for each of these errors, so there's no way at all to see what line it doesn't like.
How can I figure out what the problem is so I can generate typed helpers for VB?
Edit: After some cleanup, now I get the following compiler error, and the line number of the problem:
Error 112 Running transformation: System.NotImplementedException: Not implemented (Exception from HRESULT: 0x80004001 (E_NOTIMPL))
at EnvDTE80.CodeFunction2.get_Attributes()
at {long call stack}
The line it doesn't like is:
// Ignore methods that are marked as not being actions
if (GetAttribute(method.Attributes, "System.Web.Mvc.NonActionAttribute") != null)
continue;
Make sure you are using the latest version made for VB. Here is the T4MVCVB Nuget Package
If it's still breaking before generating the .vb files, I would uncomment these two lines near the top of T4MVCVB.tt and see if you can find the problem location.
//System.Diagnostics.Debugger.Launch();
//System.Diagnostics.Debugger.Break();

DBNull error - 'System.InvalidCastException'

Using Visual Studio 2008 and generating .net 2.0 framework with VB.net for a web application.
I encountered a very strange problem currently. After I build a solution and click a link in a web page, I got an error message as following. The same thing happened when I tried to run in debug mode.
*************************************** ERROR Message ******************************************************
"An exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll but was not handled in user code"
"Additional information: Operator '=' is not defined for type 'DBNull' and string "". "
*******************************************************************************************************************
The problem part is simply as below in a vb file. The value of dataview(0)(“name”) is NULL and my_name is a variable string. The strange is thing I didn't change any code in this vb file. This vb file was built previously and used for a long time ago without any problem. It just suddenly happened today. I have this syntax all over the program without causing any problem. I have tried to restore the whole solution back to original but still have the problem.
Can anyone please advise why all the sudden and how to fix?
If dataview(0)(“name”) = my_name then …
Try to determine NULL value first ..
If NOT IsDBNull(dataview(0)(“name”)) Then
If dataview(0)(“name”) = my_name then
'codes here
End If
End If

C++ Compiler flags in AIX: -qlanglvl=newexcp works unless I add -q64 for 64bit compiling - why?

So I'm adding an exception to an existing project but have run into an issue. I have the following compiler flags:
OC_COMPFLAGS = -c $(OC_DEBUG_COMPFLAGS) **-q64** -qcpluscmt -qinitauto=00 $(OC_OPT_COMPFLAGS) -D_RWCONFIG_8d -DXML_LIBRARY **-qlanglvl=ansifor:newexcp** -qlonglong -qfuncsect -bnoquite -bloadmap -qnamemangling=v8
The newexcp flag works perfectly except when we add in the -q64 flag - at which point it stops working. Does anyone have an idea why?
This might be applicable - from http://www-01.ibm.com/support/docview.wss?uid=swg1IY20996:
"The user can get new to throw exceptions by adding the following call to their program:
__set_new_throws_exception(true);

solve error : "Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1"

In my application I have integrate Three20 Library and Restkit framework, after this I am Build the code the error was generated
the error is :
`"Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1"`
and the error description is
ld: duplicate symbol _OBJC_METACLASS_$_RKJSONParser in /Users/pratikkanada/Desktop/Zipogo/Zipongo - working
version/RestKit/Build/Release-iphonesimulator/libRestKitJSONParserYAJL.a(RKJSONParser+YAJL.o) and
/Users/pratikkanada/Desktop/Zipogo/Zipongo - working version/RestKit/Build/Release-
iphonesimulator/libRestKitJSONParserSBJSON.a(RKJSONParser+SBJSON.o)
so, pls tell me how to solve this error
It seems that you have added that lib two times.
Please search libRestKitJSONParserSBJSON.a and (RKJSONParser+SBJSON.o) in entire code and you may found one of these added two times.
Simply solution is remove any one of two same files.