编辑:我认为已经存在一个问题:http://code.google.com/p/selenium/issues/detail?id = 5717
所以基本上我正在使用Firefox驱动程序和div id="page-content"导致我的selenium测试失败,并且引用的问题中列出了错误:"元素当前不可见,因此可能无法与之交互"但另一个是?我能够将问题追溯到这样一个事实,即该ID具有css样式,overflow: hidden这是一个错误,还是我做错了什么?
我使用的是Selenium WebDriver版本:2.33.0.0,Firefox版本:22
测试和网站的来源是:https://github.com/tonyeung/selenium-overflow-issue
如需快速参考:下面的HTML是我的测试页面.对于那些不熟悉角度的人,只要你点击添加或编辑,它所做的就是显示一个html片段作为模态,你可以在这里看到一个现场演示:http://plnkr.co/edit/LzHqxAz0f2GurbL9BGyu?p =预习
<!DOCTYPE html>
<html data-ng-app="myApp">
<head lang="en">
<meta charset="utf-8">
<title>Selenium Test</title>
<!-- // DO NOT REMOVE OR CHANGE ORDER OF THE FOLLOWING // -->
<!-- bootstrap default css (DO NOT REMOVE) -->
<link rel="stylesheet" href="css/bootstrap.min.css?v=1">
<link rel="stylesheet" href="css/bootstrap-responsive.min.css?v=1">
</head>
<body>
<div data-ng-controller="MyCtrl">
<span id="added" data-ng-show="added">Added</span>
<span id="edited" data-ng-show="edited">Edited</span>
<div id="page-content" style="overflow:hidden">
<!--<div id="page-content">-->
<div class="employees view"> …Run Code Online (Sandbox Code Playgroud) 当前的讨论主题:http: //devnet.jetbrains.com/message/5519081#5519081
错误报告:http://youtrack.jetbrains.com/issue/TW-37148
错误:无法在非交互模式下提示输入.
需要注意的一点是,凭证提示会在每个包下载时触发,而不是在开始时触发.我认为这可能是Team City调用NuGet的方式中的一个错误,但我不确定.
我已经配置了"NuGet Feed Credentials"构建功能,配置了基本身份验证,并且我在Firefox中运行了feed并获得了要在代理计算机上显示的包列表(需要凭据).
我的构建日志:https://gist.github.com/tonyeung/517597ca2312dad85f62
我只想在加载时显示某些列,同时仍然在网格菜单中显示其他列.
例如,我的数据包含:姓名,地址,电话,电子邮件.
我想在页面加载时显示姓名和地址,但在网格菜单中显示电话和电子邮件.这是为了容纳15列的网格,但只显示5,并允许用户选择要显示的其他列,如果有的话.如果用户希望默认显示7列,我可以保存当前显示的列并创建新配置以加载该特定用户.
我有一个信号器客户端,我想成为全球性的.
我认为在endpointconfig的Init()中创建signalr客户端是最好的.
public class EndpointConfig : IConfigureThisEndpoint, AsA_Server, IWantCustomInitialization
{
public static HubConnection hubConnection;
public static IHubProxy hubProxy;
public void Init()
{
Configure.With()
.DefiningEventsAs(t => t.Namespace != null && t.Namespace.Contains(".Events."))
.DefiningMessagesAs(t => t.Namespace != null && t.Namespace.Contains(".Messages."))
.StructureMapBuilder(new Container(new DependencyRegistry()));
Configure.Serialization.Json();
hubConnection = new HubConnection("http://localhost:58120");
hubProxy = hubConnection.CreateHubProxy("AmsHub");
hubProxy.On<string>("receiveServerPush", x => System.Diagnostics.Debug.WriteLine(x));
hubConnection.Start().Wait();
}
public class DependencyRegistry : Registry
{
public DependencyRegistry()
{
Scan(x =>
{
x.AssembliesFromApplicationBaseDirectory();
x.ExcludeNamespace("StructureMap");
x.WithDefaultConventions();
});
}
}
}
Run Code Online (Sandbox Code Playgroud)
我感到困惑的是,我应该如何在消息处理程序中引用hubConnection和hubProxy?我好像很喜欢操纵NServicebus.
public class TestHandler : IHandleMessages<AMS.Infrastructure.Events.IEvent>
{ …Run Code Online (Sandbox Code Playgroud) 我不确定是什么要求让一个动作返回json.
我敢肯定有一种方法可以给这只猫上皮,但我不确定什么是绝对必需的.
仅仅$ this-> render(array('json'=> compact('data'))是否足够;?
我是否需要添加指定其json的路由?
我还需要添加媒体类型application/json 吗??
我还需要添加默认布局default.json.php吗?
我还需要添加视图action.json.php吗?
注意:我想要任意网址:www.mysite.com/Controller/Action总是返回json.
我希望能够仅在我的动作中指定返回类型(即渲染类型).
我正在尝试将其转换为:
public virtual IDbSet DbSet() where T : class
Run Code Online (Sandbox Code Playgroud)
对此
Public Overridable Function DbSet() As IDbSet(Of T As Class)
Run Code Online (Sandbox Code Playgroud)
但不会编译。')'预期为As(在“ As Class”中)
请告诉我我在做什么错。
我正在尝试让EF Code First在VB中工作。