logo
down
shadow

Selenium reply button not working


Selenium reply button not working

By : M_Travis
Date : November 20 2020, 11:01 PM
it helps some times You have to use another locators as you're trying to handle not clickable elements. Try following:
code :
driver.find_element_by_id("replylink").click()
driver.find_element_by_xpath("//a[@class=\"reply-email gmail\"]").click()


Share : facebook icon twitter icon
PHP + AJAX + jQuery comment/reply system stops working after first reply is pulled

PHP + AJAX + jQuery comment/reply system stops working after first reply is pulled


By : Manasa
Date : March 29 2020, 07:55 AM
Hope this helps As requested, in answer form ^^
You need to remove the .click script that is added to every reply, and instead put $("#reply"+rnum).show("slow"); after document.getElementById("reply"+rnum).innerHTML=xmlhttp.responseText; in your code. The reason this is happening is that there are two click event associated with the buttons and they are conflicting each other. Also, putting it after getting a response is good practice, that why .show will have something to show, rather than the empty div before you get your response.
BIP4435The Aggregation Reply node has received a reply message which has a blank reply ID:

BIP4435The Aggregation Reply node has received a reply message which has a blank reply ID:


By : user3367811
Date : March 29 2020, 07:55 AM
To fix the issue you can do What you are attempting will not work because you are not using a request/reply protocol on the inside of the aggregation. As stated in the Knowledge Center article at this link, "The aggregation nodes work correctly only for transports that use a request/reply model", and writing to and reading from files does not fulfill that requirement. Some nodes that do fulfill this requirement are the MQ nodes, the SOAP Asynchronous nodes, and the HTTP Asynchronous nodes. Additionally, you need to use an AggregateControl node to mark the start of the fan-out, and I do not see an AggregateControl node in your flow sketch.
I suspect that you want to submit files to an external application(s), have that application(s)'s instances run independently and in parallel, receive response files, then group the response files based upon a flag(s) in the files' names or in the files' content. If so, use the Collector node.
Show textarea or div (just below the comment to reply),when i click reply button on comment system javascript not jquery

Show textarea or div (just below the comment to reply),when i click reply button on comment system javascript not jquery


By : baeuchle
Date : March 29 2020, 07:55 AM
hope this fix your issue Try this. It is plain JavaScript. Modify below what you want. :) I updated it.
code :
var varHtml = "<form method='post' ..... ><textarea name='reply' ></textarea> <input type='submit' /> </form>";


var allElements = document.body.getElementsByClassName("replybtn");

var addCommentField = function() {
  for (var i = 0; allElements.length > i; i++) {
    if (allElements[i] === this) {
      console.log("this " + i);

      if (document.getElementsByClassName("replyform")[i].innerHTML.length === 0) {
        document.getElementsByClassName("replyform")[i].innerHTML = varHtml;
      }

    }
  }
};


for (var i = 0; i < allElements.length; i++) {
  allElements[i].addEventListener('click', addCommentField, false);
}
<div class='cmt'>
  <div class='cmttext'></div>
  <button class='replybtn'>replybtn</button>
  <div class='replyform'></div>
</div>
<div class='cmt'>
  <div class='cmttext'></div>
  <button class='replybtn'>replybtn</button>
  <div class='replyform'></div>
</div>
<div class='cmt'>
  <div class='cmttext'></div>
  <button class='replybtn'>replybtn</button>
  <div class='replyform'></div>
</div>
Click button by find_element_by_class_name not working python selenium webdriver NOT working

Click button by find_element_by_class_name not working python selenium webdriver NOT working


By : user6658040
Date : March 29 2020, 07:55 AM
it fixes the issue You should use find_elements for finding all elements with same class Try this to get all elements:
code :
elements = driver.find_elements_by_class_name("mn-person-card__person-btn-ext.button-secondary-medium")
for e in elements:
    e.click()
How to make a reply button clicked show a textarea reply field only for one comment using data attribute

How to make a reply button clicked show a textarea reply field only for one comment using data attribute


By : user6922524
Date : March 29 2020, 07:55 AM
Does that help I've been stucked for hours on this, googled but still couldn't resolve it. I will appreciate some guidance please guys. I’m including a forum-like page on a php project I’m working on where users can comment on a post and then provision for replies to individual comments. My challenge is at the reply part of the code. I placed a reply button after the comments and when clicked fades out to show a textarea which users can type their replies. Now, when I click the reply button, it fades out which is ok, but the textarea appears for all the comments on the post. I tried introducing a data attribute(data-id) with a value of the post Id to bind the reply button clicked to the particular textarea to show but I can’t seems to wrap my head around this. Any help will be appreciated please. My Php code here: , No need to use data attribute you can just use .closest() and .next()
code :
$(document).on('click' , '.rep' , function(){
   var closestDiv = $(this).closest('div'); // also you can use $(this).parent();
   closestDiv.fadeOut();
   closestDiv.next('form').show();
});
$(document).ready(function(){
  $(document).on('click' , 'button.rep' , function(){
     var closestDiv = $(this).closest('div'); // also you can use $(this).parent()
     //closestDiv.fadeOut();
     $('.comment_reply').not(closestDiv.next('.comment_reply')).hide();
     //$('.rep').closest('div').not(closestDiv).show()
     closestDiv.next('form.comment_reply').slideToggle(100);
  });
});
form.comment_reply{
  display: none;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div>
    <button type="button" class="btn btn-primary rep" data-id="">Reply</button>
</div>
<form class="comment_reply" data-id="" method="post" action="">
    <input type="hidden" class="hidden" value="" class="post_id">
    <textarea class="form-control" rows="3" name="post_rep" class="post_rep"></textarea>
    <button type="submit" class="btn btn-primary" class="post_rep_sub">Submit</button>
</form>

<div>
    <button type="button" class="btn btn-primary rep" data-id="">Reply</button>
</div>
<form class="comment_reply" data-id="" method="post" action="">
    <input type="hidden" class="hidden" value="" class="post_id">
    <textarea class="form-control" rows="3" name="post_rep" class="post_rep"></textarea>
    <button type="submit" class="btn btn-primary" class="post_rep_sub">Submit</button>
</form>

<div>
    <button type="button" class="btn btn-primary rep" data-id="">Reply</button>
</div>
<form class="comment_reply" data-id="" method="post" action="">
    <input type="hidden" class="hidden" value="" class="post_id">
    <textarea class="form-control" rows="3" name="post_rep" class="post_rep"></textarea>
    <button type="submit" class="btn btn-primary" class="post_rep_sub">Submit</button>
</form>
Related Posts Related Posts :
  • Why for loop is splitting strings of user input?
  • How can I add two variable and assign to result variable in Python?
  • Error when parsing timestamp with pandas read_csv
  • Slicing arrays based on boolean array in python
  • Feeding scipy.sparse() sparse matrices into CVXOPT
  • How to separate a irregularly cased string to get the words? - Python
  • Pandas: replace some values in column if that contain a substring
  • Fabric does not close the ssh connection
  • Python Creating Classes Code
  • When will train() method in easy_seq2seq stop?
  • How to split each element of the RDD in spark with python?
  • Read in csv file in python, round the values and write back to file
  • How to properly close a QWidget-window in an API with PythonQt
  • How to know which segment a value reside in
  • pandas: convert multiple categories to dummies
  • 'Options' object has no attribute 'get_all_field_names'
  • Customize django filter model field
  • NLTK tag Dutch sentence
  • How to assign a column in 2d-array to some repetitive range using Python?
  • Is there any way to use one static folder for all apps in django project
  • Python Websockets Module has no attribute
  • Python generator next method
  • Is it possible to make pygame work with a slightly newer version of python?
  • to show the weights of edges in a projected network
  • as the missing method of QTabWidget of this code is written?
  • Python - return multiple values using tuple (AWS lambda function)
  • How can I get the text use xpath from the text?
  • Python generator function - is there an excel equivalent?
  • Pandas: fastest way to resolve IP to country
  • Saving huge amount of data (nearly 20 billion entries) in django postgresql
  • Is there a difference between != and <> operators in Python?
  • How to move pointer to specific bytes and read using Pickle Library in Python?
  • Create 2-d array with column keys and row keys in Python
  • Detect match failure in JMESPath
  • python3 django1.8 mysql5.5 gives page not found (404) while sqlite works fine
  • Django forms: List of checkboxes populated from a model
  • Deploying django static files in production
  • How to find the alignment of two data sets in pandas
  • antlr4 + python: debug token match
  • How to 'blit' sprites onto window for a set time
  • Program that checks if a number is prime number
  • python pandas time line graph
  • Reading a text file with OpenCV in Python
  • PyGame in MacOSX: CGContextDrawImage: invalid context 0x0
  • Twisted chat server demo exits immediately
  • How to calculate block averages in pandas DataFrame
  • how to change a list to a specific string.
  • Overlapping text when saving multiple Matplotlib images with text in a loop
  • How do I scrape ONLY <div class ='quotetext'> from a website using python?
  • Python: Float Object is not Iterable
  • ValueError: need more than 3 values to unpack
  • Evaluate while loop at certain point?
  • RxPy - Why are emissions interleaved with merging operators?
  • Spyder - hints disappear too fast
  • Creating a |N| x |M| matrix from a hash-table
  • daily data, resample every 3 days, calculate over trailing 5 days efficiently
  • How to do this program without a counter?
  • Saving a data frame with a column of list in python
  • Python newbie - refactor string function
  • TypeError: deafultdict must have first arguments callable
  • shadow
    Privacy Policy - Terms - Contact Us © soohba.com