Skip to content

Commit ce54918

Browse files
committed
Fixing dynamic assembly generation for .NET PageFactory for .NET 3.5
1 parent 6fadbcc commit ce54918

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dotnet/src/support/PageObjects/DefaultPageObjectMemberDecorator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ private static Type CreateTypeForASingleElement()
214214
{
215215
AssemblyName tempAssemblyName = new AssemblyName(Guid.NewGuid().ToString());
216216

217-
AssemblyBuilder dynamicAssembly = AppDomain.CurrentDomain.DefineDynamicAssembly(tempAssemblyName, AssemblyBuilderAccess.RunAndCollect);
218-
ModuleBuilder moduleBuilder = dynamicAssembly.DefineDynamicModule(tempAssemblyName.Name, tempAssemblyName + ".dll");
217+
AssemblyBuilder dynamicAssembly = AppDomain.CurrentDomain.DefineDynamicAssembly(tempAssemblyName, AssemblyBuilderAccess.Run);
218+
ModuleBuilder moduleBuilder = dynamicAssembly.DefineDynamicModule(tempAssemblyName.Name);
219219
TypeBuilder typeBuilder = moduleBuilder.DefineType(typeof(IWebElement).FullName, TypeAttributes.Public | TypeAttributes.Interface | TypeAttributes.Abstract);
220220

221221
foreach (Type type in InterfacesToBeProxied)

dotnet/src/support/UI/ExpectedConditions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public static Func<IWebDriver, bool> TextToBePresentInElementValue(By locator, s
317317

318318
/// <summary>
319319
/// An expectation for checking whether the given frame is available to switch
320-
/// to. <p> If the frame is available it switches the given driver to the
320+
/// to. If the frame is available it switches the given driver to the
321321
/// specified frame.
322322
/// </summary>
323323
/// <param name="frameLocator">Used to find the frame (id or name)</param>
@@ -339,7 +339,7 @@ public static Func<IWebDriver, IWebDriver> FrameToBeAvailableAndSwitchToIt(strin
339339

340340
/// <summary>
341341
/// An expectation for checking whether the given frame is available to switch
342-
/// to. <p> If the frame is available it switches the given driver to the
342+
/// to. If the frame is available it switches the given driver to the
343343
/// specified frame.
344344
/// </summary>
345345
/// <param name="locator">Locator for the Frame</param>

0 commit comments

Comments
 (0)