Problem viewing compatibility when crawling web with selenium chrome web driver

Asked 2 years ago, Updated 2 years ago, 130 views

If you go to a specific site with IE (11 versions), In the form form (after login), the Upload File button may not be visible on the screen. Or, if you fill in all the data in the form and click the 'OK' button for transfer, Sometimes it doesn't click (no data transfer, of course) So I asked the person in charge of the site, i's 'Compatibility View' said that you can register the site, so I set it up as it is The "file selection" button, which was not visible, was also displayed, and the confirmation button was clicked normally.

But if you look at this site in Chrome, the same problem occurs. So when you install the Chrome extension, it looks normal and it clicks. But while scrambling or crawling with a chrome web driver, When you try to extract the element, It's not an extension Because it looks the same as before the application of the confirmed program, Select the file from the form form and enter the data on the site Unable to automate the transmission.

In the case of elements that do not appear to be compatible in chromium (?) or that cannot be clicked, How can we solve this problem to code it into selenium?

Should I use the requests module?

chromedriver

2022-09-21 22:05

1 Answers

I don't understand the content of the question. "When you set up Compatibility View, you can see it well in IE (file selection button), but you can also click buttons that are not clicked." What do you mean...The button that doesn't click also clicks..

Selenium is not magic. It's about getting content by controlling your browser.

In other words, if the site is not properly rendered with the Chrome browser, you can also use the Chrome driver to get a broken result.

Usually, in that case, it is most likely a site developed for ie, which ignored past standards.

These sites need to leverage ie driver.

http://learn-automation.com/how-to-run-selenium-webdriver-test-in-ie-browser/

Please refer to the above address.


2022-09-21 22:05

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.