This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="modal-body document-upload"> | |
<input type="file" accept="*.pdf,*.jpg,*.jpeg,*.png,*.doc,*.docx" tabindex="-1" __afu_gen__="true" style="width: 0px; height: 0px; position: absolute; padding: 0px; margin: 0px; overflow: hidden; opacity: 0;"><button ng-show="!allowMultipleFiles" ng-file-select="" ng-model="myFiles" ng-change="addFiles()" ng-disabled="disableChooser" class="rf-button rf-button--primary upload-button ng-pristine ng-untouched ng-valid ng-hide" ng-accept="'*.pdf,*.jpg,*.jpeg,*.png,*.doc,*.docx'" ng-model-rejected="rejFiles" data-test-handle="choose-single-documents-button" accept="*.pdf,*.jpg,*.jpeg,*.png,*.doc,*.docx" __refelem__="true" style="overflow: hidden;"> | |
<i class="glyphicon glyphicon-folder-close"></i>Choose File | |
</button> | |
<input type="file" multiple="multiple" accept="*.pdf,*.jpg,*.jpeg,*.png,*.doc,*.docx" tabindex="-1" __afu_gen__="true" style="width: 0px; height: 0px; position: absolute; padding: 0px; margin: 0px; overflow: hidden; opacity: 0;"><button ng-show="allo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# if it was in ruby without the imports and all | |
driver = Selenium::WebDriver.for :firefox | |
user_data = [ | |
{ :user => 'blabla', :password => 'blabla', :base_url => 'iam.fake'}, | |
{ :user => 'blabl2a', :password => 'blabla2', :base_url => 'iam2.fake'} | |
] | |
user_data.each do |data| | |
driver.get(data[:base_url]) | |
driver.find_element(:id, 'userInput').send_keys(data[:user]) |