Here I am using the angular material form for login form using Angular5. when the applications starts, the login form placeholder couldn't be over-written. But once one I logged in and logged out, then only the input fields would be over written. Screenshot
<form [formGroup]="loginform" class="login-form">
<mat-icon style="font-size: 30px ">account_circle</mat-icon>
<mat-form-field class="example-full-width">
<input matInput placeholder="Username" formControlName="userName">
</mat-form-field>
<br>
<mat-icon style="font-size: 30px">lock_open</mat-icon>
<mat-form-field>
<input matInput placeholder="Enter your password" [type]="hide ? 'password' : 'text'" formControlName="password">
<mat-icon matSuffix (click)="hide = !hide">{{!hide ? 'visibility' : 'visibility_off' }}</mat-icon>
</mat-form-field>
<button mat-raised-button color="primary" [disabled]="!loginform.valid" (click)="clicklogin();loginform.reset()">Login</button>
<button mat-raised-button color="primary">cancel</button>
</form>
CSS File
.login-form{
top: 35%;
border: 1px;
border-style: double;
position: absolute;
width: 30%;
border-radius: 5px;
padding: 20px;
left: 30%;
}
mat-form-field{
width: 80%;
}
button{
text-align: center;
margin-left :17%;
}
mat-icon{
float: left;
line-height: 2;
margin-right: 10px;
}
You can use mat-placeholder and handle visibility easily by CSS
styles:
.placeholder.hide-ph {
display: none;
}
component.ts:
<input
...
[value]="value"
floatPlaceholder="never"
(focus)="hidePlaceholder = true" // <== you need this
/>
<mat-icon class="caret" matSuffix>arrow_drop_down</mat-icon>
<mat-placeholder
class="placeholder"
[class.hide-ph]="!!value || hidePlaceholder" // <== and this to hide placeholder by css
>
{{ placeholder }}
</mat-placeholder>
Its working fine for me.
.login-form{
top: 35%;
border: 1px;
border-style: double;
position: absolute;
width: 30%;
border-radius: 5px;
padding: 20px;
left: 30%;
}
mat-form-field{
width: 80%;
}
button{
text-align: center;
margin-left :17%;
}
mat-icon{
float: left;
line-height: 2;
margin-right: 10px;
}
<form [formGroup]="loginform" class="login-form">
<mat-icon style="font-size: 30px ">account_circle</mat-icon>
<mat-form-field class="example-full-width">
<input matInput placeholder="Username" formControlName="userName">
</mat-form-field>
<br>
<mat-icon style="font-size: 30px">lock_open</mat-icon>
<mat-form-field>
<input matInput placeholder="Enter your password" [type]="hide ? 'password' : 'text'" formControlName="password">
<mat-icon matSuffix (click)="hide = !hide"></mat-icon>
</mat-form-field>
<button mat-raised-button color="primary" [disabled]="!loginform.valid" (click)="clicklogin();loginform.reset()">Login</button>
<button mat-raised-button color="primary">cancel</button>
</form>
Related
I have been trying to automatically select the first option from a dropdown in a webpage by using selenium webdriver for vba but unable to do so. I have tried using different methods like find element by ID, find element by xpath etc. but getting NoSuchElementError.
Here is the code which I have tried.
bot.FindElementById("ReportViewerControl_ctl04").Click
here is the HTML code for the element.
Any help would be greatly appreciated.
This is the whole HTML code of the web page.
<body style="margin: 0px; overflow: auto;">
<form id="ReportViewerForm" style="width: 100%; height: 100%;" action="./ReportViewer.aspx?%2fMPM%2fMPM_ProjectServices_Schedule" method="post">
<div class="aspNetHidden">
<input name="__EVENTTARGET" id="__EVENTTARGET" type="hidden" value="">
<input name="__EVENTARGUMENT" id="__EVENTARGUMENT" type="hidden" value="">
<input name="__VIEWSTATE" id="__VIEWSTATE" type="hidden" value="/wEPDwULLTE0NjY0NTA2NjMPZBYGZg8WAh4EVGV4dAUQPCFET0NUWVBFIGh0bWw+CmQCAg8WAh4EbGFuZwUFZW4tVVMWAgIBDxYCHwAFOAoJPE1FVEEgSFRUUC1FUVVJVj0iWC1VQS1Db21wYXRpYmxlIiBDT05URU5UPSJJRT1lZGdlIj4KZAIED2QWBAIED2QWBAIBDxYCHgVWYWx1ZWRkAgMPZBYCZg9kFgJmDxYCHwJkZAIFDxQrAAUPFgYeEFYxU3R5bGVTaGVldE5hbWVkHg5SZW5kZXJpbmdTdGF0ZQspkQFNaWNyb3NvZnQuUmVwb3J0aW5nLldlYkZvcm1zLlJlcG9ydFJlbmRlcmluZ1N0YXRlLCBSZXBvcnRpbmdTZXJ2aWNlc1dlYlNlcnZlciwgVmVyc2lvbj0xMy4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj04OTg0NWRjZDg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gQzp2ZK9JtMLxgu//g==">
</div>
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['ReportViewerForm'];
if (!theForm) {
theForm = document.ReportViewerForm;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
<script src="/ReportServer/WebResource.axd?d=9xs5IOIfHw061TI0iHfRtCwcwm-Hj_q-6nrNp49wBW4ITTDIgspL_7LVbElrrTLYqCLVjoZNUhMNPIuGvaFRYw4C2NbxxS79dLaHu03gifA1&t=637100682046795651" type="text/javascript"></script>
<script src="/ReportServer/ScriptResource.axd?d=rk4cQgE67-CFfPE2bk9TbF_e_pYPZ5Fy_vkGwRwoX5kyz2YOoqnm25wmjRq4HmptTWVP1ULqYBrE4HHK-M3T7oBdrEWrJmxRhtlT9GbkJ79fFOP6HC8nzRVpzGlPfqlt_M1axvx-GXQ4M61ubN1d8G-JHeYRmdfdWkz6GkwbsSs1&t=ffffffffecf19baa" type="text/javascript"></script>
<script src="/ReportServer/ScriptResource.axd?d=jke1BTXXkzpx8QyDNk5MBiwVYnFwjyMgzINrp_oXCpsBkko99HnDr_rzrNzvHzyAK0PVFrKABrFWK2A1cbJGAJbwkSwrXJvC58YVxf1fRHELz28rRMUg7_2CTjGPKJGz9CX-d_sSPpCNu_L1MCfcx0n5LMLmxXZvpfRgYnHZscD5sc4_hs3mrssMm0HwH86i0&t=ffffffffecf19baa" type="text/javascript"></script>
<script src="/ReportServer/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=13.0.1601.5&Name=Microsoft.Reporting.WebForms.Scripts.BrowserNavigationCorrector.js" type="text/javascript"></script>
<script src="/ReportServer/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=13.0.1601.5&Name=ViewerScript" type="text/javascript"></script>
<script src="/ReportServer/ScriptResource.axd?d=Fu_zv7h1Rznnc_ZLFNjT_Rl-wO7fB-KT_fBurCijvyrOMaFdirVDY9f7YXWFS9ztJmFsSywt6hVjNzhGPBxcy8ngfF6wmT3RlOVFYhrfgLCjbMZghFZSluNhGZuZMv2RUdvGMP0YFyGxyUTl8OPevvG_yMfV4QGjvLKS3jVKjiQ1&t=ffffffffecf19baa" type="text/javascript"></script>
<div class="aspNetHidden">
<input name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" type="hidden" value="177045DE">
</div>
<script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('AjaxScriptManager', 'ReportViewerForm', ['tNavigationCorrector$ctl00','NavigationCorrector_ctl00','fReportViewerControl$ReportViewer','','fReportViewerControl$DocMap','','fReportViewerControl$ctl09$ReportArea',''], ['NavigationCorrector','NavigationCorrector'], ['ReportViewerControl$ctl09$ReportControl$ctl00',''], 0, '');
//]]>
</script>
<table width="100%" height="100%" cellspacing="0" cellpadding="0"><tbody><tr height="100%"><td width="100%">
<span><span id="ctl01_ctl00" style="display: none;"></span><script>
$addHandler(window, 'beforeunload', function() {Sys.WebForms.PageRequestManager.getInstance().abortPostBack();});
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function(sender, args) {
if (args.get_error() !== null) {
var label = $get('ctl01_ctl00');
label.style.display = '';
label.innerText = args.get_error().message;
label.textContent = label.innerText;
}
});
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(function(sender, args) {$get('ctl01_ctl00').style.display = 'none';});
</script></span><div id="NavigationCorrector" style="display: none;">
<input name="NavigationCorrector$ScrollPosition" id="NavigationCorrector_ScrollPosition" type="hidden"><input name="NavigationCorrector$ViewState" id="NavigationCorrector_ViewState" type="hidden"><input name="NavigationCorrector$PageState" id="NavigationCorrector_PageState" type="hidden" value="Loaded"><div id="NavigationCorrector_ctl00">
<input name="NavigationCorrector$NewViewState" id="NavigationCorrector_NewViewState" type="hidden">
</div>
</div><noscript>
Browser settings prevent scripts from running on this report. To view this report without scripts, click <a href="/reportserver?%2fMPM%2fMPM_ProjectServices_Schedule&rs:Command=Render&rs:Format=HTML5&rc:LinkTarget=_top&rc:Javascript=false&rc:Toolbar=false">here</a>
</noscript><div id="ReportViewerControl_ReportViewer" style="width: 100%; height: 100%;">
<div id="ReportViewerControl" style="width: 100%; height: 100%;" onclick="if ($get('ReportViewerControl_ctl04') != null && $get('ReportViewerControl_ctl04').control != null) $get('ReportViewerControl_ctl04').control.HideActiveDropDown();" onactivate="if ($get('ReportViewerControl_ctl04') != null && $get('ReportViewerControl_ctl04').control != null) $get('ReportViewerControl_ctl04').control.HideActiveDropDown();">
<div id="ReportViewerControl_HttpHandlerMissingErrorMessage" style="padding: 10px; border: 2px solid red; overflow: auto; font-size: 0.85em; display: none;">
<h2>
Report Viewer Configuration Error
</h2><p>The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. Add <add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, ReportingServicesWebServer, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /> to the system.web/httpHandlers section of the web.config file, or add <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, ReportingServicesWebServer, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /> to the system.webServer/handlers section for Internet Information Services 7 or later.</p>
</div><span id="ReportViewerControl_ctl03"><input name="ReportViewerControl$ctl03$ctl00" id="ReportViewerControl_ctl03_ctl00" type="hidden"><input name="ReportViewerControl$ctl03$ctl01" id="ReportViewerControl_ctl03_ctl01" type="hidden"></span><input name="ReportViewerControl$ctl10" id="ReportViewerControl_ctl10" type="hidden"><input name="ReportViewerControl$ctl11" id="ReportViewerControl_ctl11" type="hidden" value="standards"><div id="ReportViewerControl_AsyncWait" style="display: none; position: absolute; z-index: 1000; opacity: 0.7; background-color: white;">
</div><div class="WaitControlBackground" id="ReportViewerControl_AsyncWait_Wait" style="display: none; position: absolute; z-index: 1001;">
<table height="100%">
<tbody><tr>
<td width="32" height="32"><img style="width: 32px; height: 32px;" alt="Loading..." src="/ReportServer/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=13.0.1601.5&Name=Microsoft.Reporting.WebForms.Icons.SpinningWheel.gif"></td><td class="WaitInfoCell"><span class="WaitText">Loading...</span><div class="CancelLinkDiv">
<a class="CancelLinkText" href="javascript:$get('ReportViewerControl_AsyncWait').control._cancelCurrentPostback();">Cancel</a>
</div></td>
</tr>
</tbody></table>
</div><input name="ReportViewerControl$AsyncWait$HiddenCancelField" id="ReportViewerControl_AsyncWait_HiddenCancelField" type="hidden" value="False"><table id="ReportViewerControl_fixedTable" style="width: 100%; height: 100%; table-layout: fixed;" cellspacing="0" cellpadding="0">
<tbody><tr class="MenuBarBkGnd">
<td style="width: 25%; display: none;"></td><td style="width: 6px; display: none;"></td><td style="width: 100%;"></td>
</tr><tr id="ParametersRowReportViewerControl">
<td colspan="3"><div id="ReportViewerControl_ctl04" style="width: 100%; -ms-overflow-x: auto; -ms-overflow-y: hidden;">
<div onclick="if ($get('ReportViewerControl_ctl04') != null && $get('ReportViewerControl_ctl04').control != null) $get('ReportViewerControl_ctl04').control.HideActiveDropDown();" onactivate="if ($get('ReportViewerControl_ctl04') != null && $get('ReportViewerControl_ctl04').control != null) $get('ReportViewerControl_ctl04').control.HideActiveDropDown();">
<table width="100%" class="ParametersFrame ParamsGrid MenuBarBkGnd" id="ParameterTable_ReportViewerControl_ctl04" cellspacing="0" cellpadding="0" name="ParameterTable_ReportViewerControl_ctl04">
<tbody><tr>
<td width="100%" height="100%"><table id="ParametersGridReportViewerControl_ctl04">
<tbody><tr isparameterrow="true">
<td class="ParamLabelCell"><label for="ReportViewerControl_ctl04_ctl03_txtValue"><span>BU</span></label></td><td class="ParamEntryCell" style="padding-right: 0px;"><div id="ReportViewerControl_ctl04_ctl03" data-parametername="BU">
<div style="white-space: nowrap;" onactivate="event.cancelBubble=true;">
<input name="ReportViewerControl$ctl04$ctl03$txtValue" class="null" id="ReportViewerControl_ctl04_ctl03_txtValue" type="text" size="28" readonly="readonly"><input name="ReportViewerControl$ctl04$ctl03$ddDropDownButton" title="Select a value" id="ReportViewerControl_ctl04_ctl03_ddDropDownButton" style="margin-top: 1px; vertical-align: top; cursor: pointer;" type="image" alt="Select a value" src="/ReportServer/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=13.0.1601.5&Name=Microsoft.Reporting.WebForms.Icons.MultiValueSelect.gif">
</div>
</div></td><td class="InterParamPadding"></td><td class="ParamLabelCell"><label for="ReportViewerControl_ctl04_ctl05_txtValue"><span>Phase</span></label></td><td class="ParamEntryCell" style="padding-right: 0px;"><div id="ReportViewerControl_ctl04_ctl05" data-parametername="Phase">
<div style="white-space: nowrap;" onactivate="event.cancelBubble=true;">
<input name="ReportViewerControl$ctl04$ctl05$txtValue" class="null" id="ReportViewerControl_ctl04_ctl05_txtValue" type="text" size="28" readonly="readonly"><input name="ReportViewerControl$ctl04$ctl05$ddDropDownButton" title="Select a value" id="ReportViewerControl_ctl04_ctl05_ddDropDownButton" style="margin-top: 1px; vertical-align: top; cursor: pointer;" type="image" alt="Select a value" src="/ReportServer/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=13.0.1601.5&Name=Microsoft.Reporting.WebForms.Icons.MultiValueSelect.gif">
</div>
</div></td><td class="InterParamPadding"></td>
</tr>
</tbody></table></td><td width="6"></td><td class="SubmitButtonCell"><table>
<tbody><tr>
<td><input name="ReportViewerControl$ctl04$ctl00" id="ReportViewerControl_ctl04_ctl00" type="submit" value="View Report"></td>
</tr>
</tbody></table></td>
</tr>
</tbody></table><input disabled="disabled" style="display: none; visibility: hidden;" type="text">
</div>
</div><iframe name="ReportViewerControl_ctl04_ctl03_ctl01" title="BU place holder" id="ReportViewerControl_ctl04_ctl03_ctl01" src="javascript:'';" frameborder="0" longdesc="BU place holder" style="display: none; position: absolute; z-index: 10;" onclick="event.cancelBubble=true;" onactivate="event.cancelBubble=true;"></iframe><div id="ReportViewerControl_ctl04_ctl03_divDropDown" style="border: 1px solid darkgray; height: 150px; overflow: auto; display: none; position: absolute; z-index: 11; background-color: window;" onclick="event.cancelBubble=true;" onactivate="event.cancelBubble=true;">
<span><input name="ReportViewerControl$ctl04$ctl03$divDropDown$ctl01$HiddenIndices" id="ReportViewerControl_ctl04_ctl03_divDropDown_ctl01_HiddenIndices" type="hidden" value=""></span>
</div><iframe name="ReportViewerControl_ctl04_ctl05_ctl01" title="Phase place holder" id="ReportViewerControl_ctl04_ctl05_ctl01" src="javascript:'';" frameborder="0" longdesc="Phase place holder" style="display: none; position: absolute; z-index: 10;" onclick="event.cancelBubble=true;" onactivate="event.cancelBubble=true;"></iframe><div id="ReportViewerControl_ctl04_ctl05_divDropDown" style="border: 1px solid darkgray; height: 150px; overflow: auto; display: none; position: absolute; z-index: 11; background-color: window;" onclick="event.cancelBubble=true;" onactivate="event.cancelBubble=true;">
<span><input name="ReportViewerControl$ctl04$ctl05$divDropDown$ctl01$HiddenIndices" id="ReportViewerControl_ctl04_ctl05_divDropDown_ctl01_HiddenIndices" type="hidden" value=""></span>
</div></td>
</tr><tr style="height: 6px; font-size: 2pt;">
<td class="SplitterNormal" style="margin: 0px; padding: 0px; text-align: center; cursor: default;" colspan="3"><div id="ReportViewerControl_ToggleParam">
<input name="ReportViewerControl$ToggleParam$img" title="Hide Parameters" align="middle" id="ReportViewerControl_ToggleParam_img" aria-live="polite" style="cursor: pointer;" onclick="void(0);" type="image" alt="Hide Parameters" src="/ReportServer/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=13.0.1601.5&Name=Microsoft.Reporting.WebForms.Icons.SplitterHorizCollapse.png"><input name="ReportViewerControl$ToggleParam$store" id="ReportViewerControl_ToggleParam_store" type="hidden"><input name="ReportViewerControl$ToggleParam$collapse" id="ReportViewerControl_ToggleParam_collapse" type="hidden" value="false">
</div></td>
</tr><tr style="display: none;">
</tr><tr>
<td style="width: 25%; height: 100%; vertical-align: top; display: none;"><div style="width: 100%; height: 100%;">
<div id="ReportViewerControl_DocMap" style="width: 100%; height: 100%;">
<div id="ReportViewerControl_ctl08" style="display: none;">
<input name="ReportViewerControl$ctl08$ClientClickedId" id="ReportViewerControl_ctl08_ClientClickedId" type="hidden">
</div>
</div>
</div></td><td class="SplitterNormal" style="margin: 0px; padding: 0px; width: 4px; height: 100%; vertical-align: middle; display: none;"><div id="ReportViewerControl_ctl07">
<input name="ReportViewerControl$ctl07$img" title="Hide Document Map" align="top" id="ReportViewerControl_ctl07_img" aria-live="polite" style="cursor: pointer;" onclick="void(0);" type="image" alt="Hide Document Map" src="/ReportServer/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=13.0.1601.5&Name=Microsoft.Reporting.WebForms.Icons.SplitterVertCollapse.png"><input name="ReportViewerControl$ctl07$store" id="ReportViewerControl_ctl07_store" type="hidden"><input name="ReportViewerControl$ctl07$collapse" id="ReportViewerControl_ctl07_collapse" type="hidden" value="false">
</div></td><td style="height: 100%; vertical-align: top;"><div id="ReportViewerControl_ctl09" style="width: 100%; height: 247.27px; overflow: auto; position: relative;">
<div id="VisibleReportContentReportViewerControl_ctl09" role="main" style="display: none;"></div><div id="ReportViewerControl_ctl09_ReportArea">
<div id="ReportViewerControl_ctl09_VisibilityState" fornonreportcontentarea="false" newcontenttype="ReportingServices.WebFormsClient.ReportAreaContent.None">
<input name="ReportViewerControl$ctl09$VisibilityState$ctl00" type="hidden" value="None">
</div><input name="ReportViewerControl$ctl09$ScrollPosition" id="ReportViewerControl_ctl09_ScrollPosition" type="hidden"><span id="ReportViewerControl_ctl09_Reserved_AsyncLoadTarget"></span><div id="ReportViewerControl_ctl09_ReportControl" style="display: none;">
<span></span><input name="ReportViewerControl$ctl09$ReportControl$ctl02" type="hidden"><input name="ReportViewerControl$ctl09$ReportControl$ctl03" type="hidden"><input name="ReportViewerControl$ctl09$ReportControl$ctl04" id="ReportViewerControl_ctl09_ReportControl_ctl04" type="hidden" value="100">
</div><div id="ReportViewerControl_ctl09_NonReportContent" style="width: 100%; height: 100%; display: none;">
</div>
</div>
</div></td>
</tr>
</tbody></table>
</div>
</div>
</td></tr></tbody></table>
For an unknown reason, the active SSL on my website gets unactive on 1 specify page whenever I add Internal CSS there to add star icons to the 'Review form'. When I remove that styling part, the SSL is back up again.
I really have no clue how adding a simple star icon to my form disables the SSL? Anybody has any clues, or tricks?
See visual examples, and the script of my websites review form below:
Visual example of the form, with and without stars / active SSL
<table>
<tr>
<td>
<form action="process-review" method="post">
Overall score:
<br><span class="starRating1">
<input id="rating5A" type="radio" name="rating1" value="5" required>
<label for="rating5A">5</label>
<input id="rating4A" type="radio" name="rating1" value="4">
<label for="rating4A">4</label>
<input id="rating3A" type="radio" name="rating1" value="3">
<label for="rating3A">3</label>
<input id="rating2A" type="radio" name="rating1" value="2">
<label for="rating2A">2</label>
<input id="rating1A" type="radio" name="rating1" value="1">
<label for="rating1A">1</label>
</span>
<br>
<textarea style="background-color: #3382F8; color: white; font-size: 17px; border: 2px solid #000B68;" name="comment1" rows="5" cols="48" maxlength="10000"></textarea>
<br>
<br> Graphics:
<br><span class="starRating2">
<input id="rating5B" type="radio" name="rating2" value="5" required>
<label for="rating5B">5</label>
<input id="rating4B" type="radio" name="rating2" value="4">
<label for="rating4B">4</label>
<input id="rating3B" type="radio" name="rating2" value="3">
<label for="rating3B">3</label>
<input id="rating2B" type="radio" name="rating2" value="2">
<label for="rating2B">2</label>
<input id="rating1B" type="radio" name="rating2" value="1">
<label for="rating1B">1</label>
</span>
<br>
<textarea style="background-color: #3382F8; color: white; font-size: 17px; border: 2px solid #000B68;" name="comment2" rows="2" cols="48" maxlength="10000"></textarea>
<br>
<br> Sound:
<br><span class="starRating3">
<input id="rating5C" type="radio" name="rating3" value="5" required>
<label for="rating5C">5</label>
<input id="rating4C" type="radio" name="rating3" value="4">
<label for="rating4C">4</label>
<input id="rating3C" type="radio" name="rating3" value="3">
<label for="rating3C">3</label>
<input id="rating2C" type="radio" name="rating3" value="2">
<label for="rating2C">2</label>
<input id="rating1C" type="radio" name="rating3" value="1">
<label for="rating1C">1</label>
</span>
<br>
<textarea style="background-color: #3382F8; color: white; font-size: 17px; border: 2px solid #000B68;" name="comment3" rows="2" cols="48" maxlength="10000"></textarea>
<br>
<br> Gameplay:
<br><span class="starRating4">
<input id="rating5D" type="radio" name="rating4" value="5" required>
<label for="rating5D">5</label>
<input id="rating4D" type="radio" name="rating4" value="4">
<label for="rating4D">4</label>
<input id="rating3D" type="radio" name="rating4" value="3">
<label for="rating3D">3</label>
<input id="rating2D" type="radio" name="rating4" value="2">
<label for="rating2D">2</label>
<input id="rating1D" type="radio" name="rating4" value="1">
<label for="rating1D">1</label>
</span>
<br>
<textarea style="background-color: #3382F8; color: white; font-size: 17px; border: 2px solid #000B68;" name="comment4" rows="2" cols="48" maxlength="10000"></textarea>
<br>
<br> Story:
<br><span class="starRating5">
<input id="rating5E" type="radio" name="rating5" value="5" required>
<label for="rating5E">5</label>
<input id="rating4E" type="radio" name="rating5" value="4">
<label for="rating4E">4</label>
<input id="rating3E" type="radio" name="rating5" value="3">
<label for="rating3E">3</label>
<input id="rating2E" type="radio" name="rating5" value="2">
<label for="rating2E">2</label>
<input id="rating1E" type="radio" name="rating5" value="1">
<label for="rating1E">1</label>
</span>
<br>
<textarea style="background-color: #3382F8; color: white; font-size: 17px; border: 2px solid #000B68;" name="comment5" rows="2" cols="48" maxlength="10000"></textarea>
<br>
<br> User Interface:
<br><span class="starRating6">
<input id="rating5F" type="radio" name="rating6" value="5" required>
<label for="rating5F">5</label>
<input id="rating4F" type="radio" name="rating6" value="4">
<label for="rating4F">4</label>
<input id="rating3F" type="radio" name="rating6" value="3">
<label for="rating3F">3</label>
<input id="rating2F" type="radio" name="rating6" value="2">
<label for="rating2F">2</label>
<input id="rating1F" type="radio" name="rating6" value="1">
<label for="rating1F">1</label>
</span>
<br>
<textarea style="background-color: #3382F8; color: white; font-size: 17px; border: 2px solid #000B68;" name="comment6" rows="2" cols="48" maxlength="10000"></textarea>
<br>
<br>
<br> Name* (will be published with your review):
<br>
<input style="background-color: #3382F8; color: white; font-size: 17px; border: 2px solid #000B68;" type="text" name="name1" size="50" maxlength="50" required/>
<br>
<br> E-mail (hidden with your review):
<br>
<input style="background-color: #3382F8; color: white; font-size: 17px; border: 2px solid #000B68;" type="text" name="email1" size="50" maxlength="50" />
<br>
<br> Anti-bot verification*:
<div class="check">
<label>4 x 3 =</label>
<input min="0" max="999999" style="background-color: #3382F8; color: white; font-size: 17px; border: 2px solid #000B68;" type="number" name="not_robot1" required="required">
</div>
<br>
<input style="background-color: #3382F8; color: white; font-size: 17px; border: 2px solid #000B68;" type="submit" name="submit" value="Send" />
</form>
</td>
</tr>
</table>
<head>
<style>
.starRating1:not(old) {
display: inline-block;
width: 7.5em;
height: 1.5em;
overflow: hidden;
vertical-align: bottom;
}
.starRating1:not(old) > input {
margin-right: -100%;
opacity: 0;
}
.starRating1:not(old) > label {
display: block;
float: right;
position: relative;
background: url('http://empireofthewicked.com/images/star-off.png');
background-size: contain;
}
.starRating1:not(old) > label:before {
content: '';
display: block;
width: 1.5em;
height: 1.5em;
background: url('http://empireofthewicked.com/images/star-on.png');
background-size: contain;
opacity: 0;
transition: opacity 0.2s linear;
}
.starRating1:not(old) > label:hover:before,
.starRating1:not(old) > label:hover ~ label:before,
.starRating1:not(:hover) >:checked ~ label:before {
opacity: 1;
}
.starRating2:not(old) {
display: inline-block;
width: 7.5em;
height: 1.5em;
overflow: hidden;
vertical-align: bottom;
}
.starRating2:not(old) > input {
margin-right: -100%;
opacity: 0;
}
.starRating2:not(old) > label {
display: block;
float: right;
position: relative;
background: url('http://empireofthewicked.com/images/star-off.png');
background-size: contain;
}
.starRating2:not(old) > label:before {
content: '';
display: block;
width: 1.5em;
height: 1.5em;
background: url('http://empireofthewicked.com/images/star-on.png');
background-size: contain;
opacity: 0;
transition: opacity 0.2s linear;
}
.starRating2:not(old) > label:hover:before,
.starRating2:not(old) > label:hover ~ label:before,
.starRating2:not(:hover) >:checked ~ label:before {
opacity: 1;
}
.starRating3:not(old) {
display: inline-block;
width: 7.5em;
height: 1.5em;
overflow: hidden;
vertical-align: bottom;
}
.starRating3:not(old) > input {
margin-right: -100%;
opacity: 0;
}
.starRating3:not(old) > label {
display: block;
float: right;
position: relative;
background: url('http://empireofthewicked.com/images/star-off.png');
background-size: contain;
}
.starRating3:not(old) > label:before {
content: '';
display: block;
width: 1.5em;
height: 1.5em;
background: url('http://empireofthewicked.com/images/star-on.png');
background-size: contain;
opacity: 0;
transition: opacity 0.2s linear;
}
.starRating3:not(old) > label:hover:before,
.starRating3:not(old) > label:hover ~ label:before,
.starRating3:not(:hover) >:checked ~ label:before {
opacity: 1;
}
.starRating4:not(old) {
display: inline-block;
width: 7.5em;
height: 1.5em;
overflow: hidden;
vertical-align: bottom;
}
.starRating4:not(old) > input {
margin-right: -100%;
opacity: 0;
}
.starRating4:not(old) > label {
display: block;
float: right;
position: relative;
background: url('http://empireofthewicked.com/images/star-off.png');
background-size: contain;
}
.starRating4:not(old) > label:before {
content: '';
display: block;
width: 1.5em;
height: 1.5em;
background: url('http://empireofthewicked.com/images/star-on.png');
background-size: contain;
opacity: 0;
transition: opacity 0.2s linear;
}
.starRating4:not(old) > label:hover:before,
.starRating4:not(old) > label:hover ~ label:before,
.starRating4:not(:hover) >:checked ~ label:before {
opacity: 1;
}
.starRating5:not(old) {
display: inline-block;
width: 7.5em;
height: 1.5em;
overflow: hidden;
vertical-align: bottom;
}
.starRating5:not(old) > input {
margin-right: -100%;
opacity: 0;
}
.starRating5:not(old) > label {
display: block;
float: right;
position: relative;
background: url('http://empireofthewicked.com/images/star-off.png');
background-size: contain;
}
.starRating5:not(old) > label:before {
content: '';
display: block;
width: 1.5em;
height: 1.5em;
background: url('http://empireofthewicked.com/images/star-on.png');
background-size: contain;
opacity: 0;
transition: opacity 0.2s linear;
}
.starRating5:not(old) > label:hover:before,
.starRating5:not(old) > label:hover ~ label:before,
.starRating5:not(:hover) >:checked ~ label:before {
opacity: 1;
}
.starRating6:not(old) {
display: inline-block;
width: 7.5em;
height: 1.5em;
overflow: hidden;
vertical-align: bottom;
}
.starRating6:not(old) > input {
margin-right: -100%;
opacity: 0;
}
.starRating6:not(old) > label {
display: block;
float: right;
position: relative;
background: url('http://empireofthewicked.com/images/star-off.png');
background-size: contain;
}
.starRating6:not(old) > label:before {
content: '';
display: block;
width: 1.5em;
height: 1.5em;
background: url('http://empireofthewicked.com/images/star-on.png');
background-size: contain;
opacity: 0;
transition: opacity 0.2s linear;
}
.starRating6:not(old) > label:hover:before,
.starRating6:not(old) > label:hover ~ label:before,
.starRating6:not(:hover) >:checked ~ label:before {
opacity: 1;
}
</style>
</head>
The problem is this:
background: url('http://empireofthewicked.com/images/star-off.png');
'http' part should be 'https' for a safe connection. Every image served must come from an 'https' connection. So if you load it externally from 'http' it will be labeled as unsafe. You can solve it by loading it from your own server or use the 'https' version if available.
I am having hard time figuring out how to fix a small alignment issue as shown in the fiddle. The text box and 'R' bootstrap label is not aligned on the top.
https://jsfiddle.net/haribalaji/p7Louzq9/
.inline-form-control
{
display: inline-block;
width: 90%;
}
.labelClass
{
display: inline-block;
height: 40px;
}
.label-primary {
background-color: #337ab7;
}
.label {
display: inline;
padding: .2em .6em .3em;
font-size: 75%;
font-weight: 700;
line-height: 1;
color: #fff;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: .25em;
}
Here is the code
<code>
<form>
<div class="row">
<div class="col-xs-12 col-md-8">
<div class="form-group">
<label for="adrTerm"><span>Adverse Reaction Term</span><span style="color:red;">*</span></label>
<div class="field"><input type="text" name="adrTerm" class="inline-form-control form-control" placeholder="Enter the ADR Term Name" value="" tabindex="1"><span class="labelClass label label-primary">R</span>
<div class="input"></div>
</div>
</div>
</div>
</form>
</code>
This fiddle demonstrates the "R" label being the same height as the input and aligned to its right.
As mentioned in the comments earlier, the markup needed to be much simpler:
<div class="container">
<form>
<div class="form-group">
<label for="adrTerm" class="col-xs-12 control-label text-left">Adverse Reaction Term<span style="color:red;">*</span></label>
<div class="col-xs-11">
<input type="text" name="adrTerm" class="form-control" placeholder="Enter the ADR Term Name" value="" tabindex="1">
</div>
<div class="col-xs-1">
<label class="text-center rLabel">R</label>
</div>
</div>
</form>
</div>
And also, very little custom CSS is required:
.container {
margin: 10px
}
.rLabel {
padding-top: 6px;
padding-bottom: 6px;
background-color: #337ab7;
margin-left: -30px;
color: #fff;
width: 80%;
}
This still may not give you exactly what you want. For example, you may not care for how the "R" label will change width when the window is resized. If so, change the width in the .rLabel class to a fixed width.
Note how the Bootstrap styles are added to the fiddle as an external resource.
Also, note that the use of a container is required.
Updated link to JSFIDDLE
.labelClass
{
display: inline-block;
position:absolute;//added
}
.label {
display: inline;
padding:0 0.6em;//changed
font-size: 75%;
font-weight: 700;
line-height: 1.8;//changed
color: #fff;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: .25em;
}
Make label position absolute,
Removed unnecessary padding,
Changed line height of label.
Use input group add-on of bootstrap if you are using.
http://v4-alpha.getbootstrap.com/components/input-group/
I am testing with Capybara and Selenium.
This is my inspection:
<form id="fileuploadform" enctype="multipart/form-data" onsubmit="return false;" autocomplete="off">
<div class="NFI-wrapper nice" id="NFI-wrapper-14302252427892468" style="overflow: auto; display: inline-block;">
<div class="NFI-button NFI14302252427892468" style="overflow: hidden; position: relative; display: block; float: left; white-space: nowrap; text-align: center;">
Browse...
<input type="file" id="attachmentfiles" class="nice NFI-current" multiple="" data-styled="true" style="opacity: 0; position: absolute; border: none; margin: 0px; padding: 0px; top: 0px; right: 0px; cursor: pointer; height: 60px;">
</div>
<input type="text" readonly="readonly" class="NFI-filename NFI14302252427892468" style="display: block; float: left; margin: 0px; padding: 0px 5px;">
</div>
</form>
If I try to attach_file("attachmentfiles", "some_path"), I get an error saying:
Unable to find file field "attachmentfiles"
If I search the same input through all("input")[0] I get the following:
Capybara::ElementNotFound: Unable to find field #<Capybara::Element tag="input">
The tag 'form' behaves the same way.
I really don't understand what should I do in this case to upload a file.
Thanks,
Luca
First thing you can do is defining:
Capybara.ignore_hidden_elements = false
Another is, just add visible: false as 3rd parameter to attach_file()
Please I need to know how to display a partial view in a specific area in the main view , this is my source code
Main View: cshtml
<table align="left" border="5px" cellspacing="2px" style="border:2px solid black">
<tr>
<table>
<tr>
<td style="border:2px solid black">
<div style="background-color: #fff; border: 6px solid #ccc; height: 700px; width: 500px; margin: 20px; padding: 20px;" align="center">Select Baseline Image
<input type="button" value="Upload" align="right">
<div style="background-color: #fff; border: 6px solid #ccc; height: 500px; width: 300px; margin: 20px; padding: 20px;" align="center">#Html.Partial("_DisplayImage")</div>
</div>
<form method="POST">
<input id="leftUrlTB" name="URL" type="Text" style="background-color: #fff; border: 6px solid #ccc"/>
<input id="leftBrowser" name="leftBrowser" value="Firefox" type="radio" />Firefox<br>
<input id="leftBrowser" name="leftBrowser" value="Chrome" type="radio" />Chrome<br>
<input id="leftBrowser" name="leftBrowser" value="Internet Explorer" type="radio" />Internet Explorer<br>
<input type="submit" value="Capture" align="right">
</form>
</td>
<td style="border:2px solid black">
<div style="background-color: #fff; border: 6px solid #ccc; height: 700px; width: 500px; margin: 20px; padding: 20px;" align="center">Select Comparison Image
<input type="button" value="Upload" align="right">
<div style="background-color: #fff; border: 6px solid #ccc; height: 500px; width: 300px; margin: 20px; padding: 20px;" align="center"></div></div>
<form method="POST">
<input id="rightUrlTB" name="URL" type="Text" style="background-color: #fff; border: 6px solid #ccc"/>
<input id="rightBrowser" name="leftBrowser" value="Firefox" type="radio" />Firefox<br>
<input id="rightBrowser" name="leftBrowser" value="Chrome" type="radio" />Chrome<br>
<input id="rightBrowser" name="leftBrowser" value="Internet Explorer" type="radio" />Internet Explorer<br>
<input type="submit" value="Capture" align="right">
</form>
</td>
</tr>
</table>
</tr>
<tr>
<td >
<div style="background-color: #fff; border: 6px solid #ccc; height: 700px; width: 1100px; margin: 20px; padding: 20px;" align="center"></div>
</td>
the partial view code is this one :
<img src="#Url.Action("WebAppView")" />
And I got those controllers :
public ActionResult WebAppView()
{
return View();
}
[HttpPost]
public ActionResult WebAppView(string url, string selectedBrowserRadio)
{
selectedBrowserRadio = Request.Form["leftBrowser"];
selectedBrowserRadio = selectedBrowserRadio.Replace(" ", string.Empty);
var selectedBrowser = (Browser)Enum.Parse(typeof(Browser), selectedBrowserRadio, true);
var bmp= ScreenShotter.TakeScreenShot(selectedBrowser, url);
var converter = new ImageConverter();
var bmpArray = (byte[])converter.ConvertTo(bmp, typeof(byte[]));
return File(bmpArray,"image/png");
}
public ViewResult _DisplayImage()
{
return View("_DisplayImage");
}
My problem is that the image returned is displayed in the whole view not in the div area in which I specified. I need to render it in the left div area
thank you
Try changing
public ActionResult WebAppView()
{
return View();
}
into
public ActionResult WebAppView()
{
return PartialView();
}
#Html.Partial("_DisplayImage") should call directly to the partial view and not go through the controller.
Did you mean to use #Html.RenderAction() to call the Action method? and if so your action method is returning a view("_DisplayImage") result and not a PartialView("_DisplayImage") which it should be.